summaryrefslogtreecommitdiff
path: root/src/node_code_cache_stub.cc
blob: 2fb86c5bf769f5837c4147e0d445a50932abc4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include "node_code_cache.h"

// This is supposed to be generated by tools/generate_code_cache.js
// The stub here is used when configure is run without `--code-cache-path`

namespace node {

const bool native_module_has_code_cache = false;

void DefineCodeCache(Environment* env, v8::Local<v8::Object> target) {
  // When we do not produce code cache for builtin modules,
  // `internalBinding('code_cache')` returns an empty object
  // (here as `target`) so this is a noop.
}

void DefineCodeCacheHash(Environment* env, v8::Local<v8::Object> target) {
  // When we do not produce code cache for builtin modules,
  // `internalBinding('code_cache_hash')` returns an empty object
  // (here as `target`) so this is a noop.
}

}  // namespace node