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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: rebase 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
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() { 317 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() {
318 OutputToBooleanLogicalNot(); 318 OutputToBooleanLogicalNot();
319 return *this; 319 return *this;
320 } 320 }
321 321
322 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { 322 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() {
323 OutputTypeOf(); 323 OutputTypeOf();
324 return *this; 324 return *this;
325 } 325 }
326 326
327 BytecodeArrayBuilder& BytecodeArrayBuilder::GetSuperConstructor(Register out) {
328 OutputGetSuperConstructor(out);
329 return *this;
330 }
331
327 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation( 332 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation(
328 Token::Value op, Register reg, int feedback_slot) { 333 Token::Value op, Register reg, int feedback_slot) {
329 switch (op) { 334 switch (op) {
330 case Token::Value::EQ: 335 case Token::Value::EQ:
331 OutputTestEqual(reg, feedback_slot); 336 OutputTestEqual(reg, feedback_slot);
332 break; 337 break;
333 case Token::Value::NE: 338 case Token::Value::NE:
334 OutputTestNotEqual(reg, feedback_slot); 339 OutputTestNotEqual(reg, feedback_slot);
335 break; 340 break;
336 case Token::Value::EQ_STRICT: 341 case Token::Value::EQ_STRICT:
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 RegisterList reg_list) { 1040 RegisterList reg_list) {
1036 DCHECK(RegisterListIsValid(reg_list)); 1041 DCHECK(RegisterListIsValid(reg_list));
1037 if (register_optimizer_) 1042 if (register_optimizer_)
1038 register_optimizer_->PrepareOutputRegisterList(reg_list); 1043 register_optimizer_->PrepareOutputRegisterList(reg_list);
1039 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1044 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1040 } 1045 }
1041 1046
1042 } // namespace interpreter 1047 } // namespace interpreter
1043 } // namespace internal 1048 } // namespace internal
1044 } // namespace v8 1049 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698