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

Side by Side Diff: test/unittests/interpreter/bytecode-array-builder-unittest.cc

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: Change arm64 loop to be similar to the rest Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/interpreter/bytecode-array-builder.h" 7 #include "src/interpreter/bytecode-array-builder.h"
8 #include "src/interpreter/bytecode-array-iterator.h" 8 #include "src/interpreter/bytecode-array-iterator.h"
9 #include "src/interpreter/bytecode-label.h" 9 #include "src/interpreter/bytecode-label.h"
10 #include "src/interpreter/bytecode-register-allocator.h" 10 #include "src/interpreter/bytecode-register-allocator.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 .CreateObjectLiteral(factory->NewFixedArray(1), 0, 0, reg); 132 .CreateObjectLiteral(factory->NewFixedArray(1), 0, 0, reg);
133 133
134 // Call operations. 134 // Call operations.
135 builder.Call(reg, reg_list, 1, Call::GLOBAL_CALL) 135 builder.Call(reg, reg_list, 1, Call::GLOBAL_CALL)
136 .Call(reg, reg_list, 1, Call::NAMED_PROPERTY_CALL, 136 .Call(reg, reg_list, 1, Call::NAMED_PROPERTY_CALL,
137 TailCallMode::kDisallow) 137 TailCallMode::kDisallow)
138 .Call(reg, reg_list, 1, Call::GLOBAL_CALL, TailCallMode::kAllow) 138 .Call(reg, reg_list, 1, Call::GLOBAL_CALL, TailCallMode::kAllow)
139 .CallRuntime(Runtime::kIsArray, reg) 139 .CallRuntime(Runtime::kIsArray, reg)
140 .CallRuntimeForPair(Runtime::kLoadLookupSlotForCall, reg_list, pair) 140 .CallRuntimeForPair(Runtime::kLoadLookupSlotForCall, reg_list, pair)
141 .CallJSRuntime(Context::SPREAD_ITERABLE_INDEX, reg_list) 141 .CallJSRuntime(Context::SPREAD_ITERABLE_INDEX, reg_list)
142 .NewWithSpread(reg_list); 142 .NewWithSpread(reg, reg_list);
143 143
144 // Emit binary operator invocations. 144 // Emit binary operator invocations.
145 builder.BinaryOperation(Token::Value::ADD, reg, 1) 145 builder.BinaryOperation(Token::Value::ADD, reg, 1)
146 .BinaryOperation(Token::Value::SUB, reg, 2) 146 .BinaryOperation(Token::Value::SUB, reg, 2)
147 .BinaryOperation(Token::Value::MUL, reg, 3) 147 .BinaryOperation(Token::Value::MUL, reg, 3)
148 .BinaryOperation(Token::Value::DIV, reg, 4) 148 .BinaryOperation(Token::Value::DIV, reg, 4)
149 .BinaryOperation(Token::Value::MOD, reg, 5); 149 .BinaryOperation(Token::Value::MOD, reg, 5);
150 150
151 // Emit bitwise operator invocations 151 // Emit bitwise operator invocations
152 builder.BinaryOperation(Token::Value::BIT_OR, reg, 6) 152 builder.BinaryOperation(Token::Value::BIT_OR, reg, 6)
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 iterator.Advance(); 759 iterator.Advance();
760 } 760 }
761 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); 761 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn);
762 iterator.Advance(); 762 iterator.Advance();
763 CHECK(iterator.done()); 763 CHECK(iterator.done());
764 } 764 }
765 765
766 } // namespace interpreter 766 } // namespace interpreter
767 } // namespace internal 767 } // namespace internal
768 } // namespace v8 768 } // namespace v8
OLDNEW
« src/interpreter/interpreter-assembler.cc ('K') | « test/mjsunit/es6/spread-call-new-class.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698