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

#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 {
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