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

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

Issue 1396693003: [Interpreter] Add function literal support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_newcontext
Patch Set: Make CreateClosure a bytecode Created 5 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
Index: src/interpreter/bytecode-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 7984aa7f5ef42254c6d2c679d9f286861848ee9a..41865e71ce64817b021257ec5adfe7579f6221b3 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -85,6 +85,8 @@ class BytecodeArrayBuilder {
// Pop the current context and replace with |context|
BytecodeArrayBuilder& PopContext(Register context);
+ // Create a new closure for the SharedFunctionInfo in the accumulator.
+ BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured);
// Call a JS function. The JSFunction or Callable to be called should be in
// |callable|, the receiver should be in |receiver| and all subsequent

Powered by Google App Engine
This is Rietveld 408576698