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

Unified Diff: src/interpreter/bytecode-array-builder.h

Issue 2248633002: [interpreter] Add CreateBlockContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: regenerate golden files Created 4 years, 4 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-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 18e2bb16ed503a0d22eb4436fb9aeaa9a306e8d5..40984880f201e91ff9cb8653be0c10c7d121959a 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -135,6 +135,11 @@ class BytecodeArrayBuilder final : public ZoneObject {
// constant pool index |entry|.
BytecodeArrayBuilder& CreateClosure(size_t entry, int flags);
+ // Create a new local context for a ScopeInfo which will be inserted at
+ // constant pool index |entry| and with a closure which should be in the
+ // accumulator.
+ BytecodeArrayBuilder& CreateBlockContext(size_t entry);
+
// Create a new context with size |slots|.
BytecodeArrayBuilder& CreateFunctionContext(int slots);

Powered by Google App Engine
This is Rietveld 408576698