OLD | NEW |
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() { | 313 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() { |
314 OutputToBooleanLogicalNot(); | 314 OutputToBooleanLogicalNot(); |
315 return *this; | 315 return *this; |
316 } | 316 } |
317 | 317 |
318 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { | 318 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { |
319 OutputTypeOf(); | 319 OutputTypeOf(); |
320 return *this; | 320 return *this; |
321 } | 321 } |
322 | 322 |
| 323 BytecodeArrayBuilder& BytecodeArrayBuilder::GetSuperConstructor(Register out) { |
| 324 OutputGetSuperConstructor(out); |
| 325 return *this; |
| 326 } |
| 327 |
323 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation( | 328 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation( |
324 Token::Value op, Register reg, int feedback_slot) { | 329 Token::Value op, Register reg, int feedback_slot) { |
325 switch (op) { | 330 switch (op) { |
326 case Token::Value::EQ: | 331 case Token::Value::EQ: |
327 OutputTestEqual(reg, feedback_slot); | 332 OutputTestEqual(reg, feedback_slot); |
328 break; | 333 break; |
329 case Token::Value::NE: | 334 case Token::Value::NE: |
330 OutputTestNotEqual(reg, feedback_slot); | 335 OutputTestNotEqual(reg, feedback_slot); |
331 break; | 336 break; |
332 case Token::Value::EQ_STRICT: | 337 case Token::Value::EQ_STRICT: |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 RegisterList reg_list) { | 1033 RegisterList reg_list) { |
1029 DCHECK(RegisterListIsValid(reg_list)); | 1034 DCHECK(RegisterListIsValid(reg_list)); |
1030 if (register_optimizer_) | 1035 if (register_optimizer_) |
1031 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1036 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1032 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1037 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1033 } | 1038 } |
1034 | 1039 |
1035 } // namespace interpreter | 1040 } // namespace interpreter |
1036 } // namespace internal | 1041 } // namespace internal |
1037 } // namespace v8 | 1042 } // namespace v8 |
OLD | NEW |