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

Unified Diff: src/objects-inl.h

Issue 2451153002: [modules] Improve error messages. (Closed)
Patch Set: Address comments. 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
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | 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 27105dafe7c843d857af2a4e5f3a5b889874486b..565b31e018377e9eabfa56b3e5a345ae8354e3ad 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -8048,6 +8048,14 @@ Object* ModuleInfoEntry::module_request() const {
return get(kModuleRequestIndex);
}
+int ModuleInfoEntry::beg_pos() const {
+ return Smi::cast(get(kBegPosIndex))->value();
+}
+
+int ModuleInfoEntry::end_pos() const {
+ return Smi::cast(get(kEndPosIndex))->value();
+}
+
FixedArray* ModuleInfo::module_requests() const {
return FixedArray::cast(get(kModuleRequestsIndex));
}
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698