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

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

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.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 70342079e0ffcb4838fe7130ee383eb0252ffa66..6ba21966ef0158ce03e6f76b9ac85be5cad3df08 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -354,6 +354,14 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::PopContext(Register context) {
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(
+ PretenureFlag tenured) {
+ DCHECK(FitsInImm8Operand(tenured));
+ Output(Bytecode::kCreateClosure, static_cast<uint8_t>(tenured));
+ return *this;
+}
+
+
BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToBoolean() {
if (LastBytecodeInSameBlock()) {
// If the previous bytecode puts a boolean in the accumulator

Powered by Google App Engine
This is Rietveld 408576698