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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |