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

Unified Diff: src/interpreter/bytecode-generator.h

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: fix build Created 3 years, 9 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
Index: src/interpreter/bytecode-generator.h
diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h
index 89739f9466ab6268190b598bc85a37a194f6609d..95eacece0b8767a58b86c125707d2f1e5e10c02d 100644
--- a/src/interpreter/bytecode-generator.h
+++ b/src/interpreter/bytecode-generator.h
@@ -209,6 +209,14 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
inline LanguageMode language_mode() const;
int feedback_index(FeedbackSlot slot) const;
+ void set_source_url_entry(size_t entry) {
+ has_source_url_entry_ = true;
+ source_url_entry_ = entry;
+ }
+
+ size_t source_url_entry() const { return source_url_entry_; }
+ bool has_source_url_entry() const { return has_source_url_entry_; }
+
Zone* zone_;
BytecodeArrayBuilder* builder_;
CompilationInfo* info_;
@@ -231,6 +239,8 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
ZoneVector<BytecodeLabel> generator_resume_points_;
Register generator_state_;
int loop_depth_;
+ size_t source_url_entry_;
+ bool has_source_url_entry_;
};
} // namespace interpreter

Powered by Google App Engine
This is Rietveld 408576698