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

Unified Diff: src/objects-inl.h

Issue 2460233003: [modules] Assign cell indices at validation time. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
« no previous file with comments | « src/objects.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 494e9311b235172d178d7afa67ac5be77204f69c..9252c59fae1131c1dfc5e0e0cdacb9340eececdc 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -8052,8 +8052,12 @@ Object* ModuleInfoEntry::local_name() const { return get(kLocalNameIndex); }
Object* ModuleInfoEntry::import_name() const { return get(kImportNameIndex); }
-Object* ModuleInfoEntry::module_request() const {
- return get(kModuleRequestIndex);
+int ModuleInfoEntry::module_request() const {
+ return Smi::cast(get(kModuleRequestIndex))->value();
+}
+
+int ModuleInfoEntry::cell_index() const {
+ return Smi::cast(get(kCellIndexIndex))->value();
}
int ModuleInfoEntry::beg_pos() const {
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698