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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: address comments Created 4 years 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() { 311 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() {
312 OutputToBooleanLogicalNot(); 312 OutputToBooleanLogicalNot();
313 return *this; 313 return *this;
314 } 314 }
315 315
316 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { 316 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() {
317 OutputTypeOf(); 317 OutputTypeOf();
318 return *this; 318 return *this;
319 } 319 }
320 320
321 BytecodeArrayBuilder& BytecodeArrayBuilder::GetSuperConstructor(Register out) {
322 OutputGetSuperConstructor(out);
323 return *this;
324 }
325
321 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation( 326 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation(
322 Token::Value op, Register reg, int feedback_slot) { 327 Token::Value op, Register reg, int feedback_slot) {
323 switch (op) { 328 switch (op) {
324 case Token::Value::EQ: 329 case Token::Value::EQ:
325 OutputTestEqual(reg, feedback_slot); 330 OutputTestEqual(reg, feedback_slot);
326 break; 331 break;
327 case Token::Value::NE: 332 case Token::Value::NE:
328 OutputTestNotEqual(reg, feedback_slot); 333 OutputTestNotEqual(reg, feedback_slot);
329 break; 334 break;
330 case Token::Value::EQ_STRICT: 335 case Token::Value::EQ_STRICT:
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 RegisterList reg_list) { 1025 RegisterList reg_list) {
1021 DCHECK(RegisterListIsValid(reg_list)); 1026 DCHECK(RegisterListIsValid(reg_list));
1022 if (register_optimizer_) 1027 if (register_optimizer_)
1023 register_optimizer_->PrepareOutputRegisterList(reg_list); 1028 register_optimizer_->PrepareOutputRegisterList(reg_list);
1024 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1029 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1025 } 1030 }
1026 1031
1027 } // namespace interpreter 1032 } // namespace interpreter
1028 } // namespace internal 1033 } // namespace internal
1029 } // namespace v8 1034 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698