Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Unified Diff: src/objects-inl.h

Issue 2395233003: [modules] Give Module an internal [hash] field (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/objects.h ('K') | « src/objects-debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index a48d7c8576dd03b1daa745ee9a6f7b1282a591b7..1e24db7d1f8d581d6f71130ca5393472afc2988e 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5714,6 +5714,7 @@ ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset)
SMI_ACCESSORS(Module, flags, kFlagsOffset)
BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit)
ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset)
+SMI_ACCESSORS(Module, hash, kHashOffset)
SharedFunctionInfo* Module::shared() const {
return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code())
@@ -5724,8 +5725,6 @@ ModuleInfo* Module::info() const {
return shared()->scope_info()->ModuleDescriptorInfo();
}
-uint32_t Module::Hash() const { return Symbol::cast(shared()->name())->Hash(); }
-
ACCESSORS(AccessorPair, getter, Object, kGetterOffset)
ACCESSORS(AccessorPair, setter, Object, kSetterOffset)
« src/objects.h ('K') | « src/objects-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698