diff options
Diffstat (limited to 'src/node_code_cache_stub.cc')
-rw-r--r-- | src/node_code_cache_stub.cc | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/node_code_cache_stub.cc b/src/node_code_cache_stub.cc index 2fb86c5bf7..95997bb120 100644 --- a/src/node_code_cache_stub.cc +++ b/src/node_code_cache_stub.cc @@ -1,23 +1,19 @@ -#include "node_code_cache.h" +#include "node_native_module.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 { +namespace native_module { -const bool native_module_has_code_cache = false; +// The generated source code would insert <std::string, UnionString> pairs +// into native_module_loader.code_cache_. +void NativeModuleLoader::LoadCodeCache() {} -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. -} +// The generated source code would instert <std::string, std::string> pairs +// into native_module_loader.code_cache_hash_. +void NativeModuleLoader::LoadCodeCacheHash() {} +} // namespace native_module } // namespace node |