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/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 #include "src/interpreter/bytecode-array-writer.h" | 9 #include "src/interpreter/bytecode-array-writer.h" |
10 #include "src/interpreter/bytecode-dead-code-optimizer.h" | 10 #include "src/interpreter/bytecode-dead-code-optimizer.h" |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 return *this; | 526 return *this; |
527 } | 527 } |
528 | 528 |
529 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( | 529 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( |
530 Register receiver, Register cache_info_triple) { | 530 Register receiver, Register cache_info_triple) { |
531 Output(Bytecode::kForInPrepare, RegisterOperand(receiver), | 531 Output(Bytecode::kForInPrepare, RegisterOperand(receiver), |
532 RegisterOperand(cache_info_triple)); | 532 RegisterOperand(cache_info_triple)); |
533 return *this; | 533 return *this; |
534 } | 534 } |
535 | 535 |
536 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInDone(Register index, | 536 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInContinue( |
537 Register cache_length) { | 537 Register index, Register cache_length) { |
538 Output(Bytecode::kForInDone, RegisterOperand(index), | 538 Output(Bytecode::kForInContinue, RegisterOperand(index), |
539 RegisterOperand(cache_length)); | 539 RegisterOperand(cache_length)); |
540 return *this; | 540 return *this; |
541 } | 541 } |
542 | 542 |
543 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInNext( | 543 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInNext( |
544 Register receiver, Register index, Register cache_type_array_pair, | 544 Register receiver, Register index, Register cache_type_array_pair, |
545 int feedback_slot) { | 545 int feedback_slot) { |
546 Output(Bytecode::kForInNext, RegisterOperand(receiver), | 546 Output(Bytecode::kForInNext, RegisterOperand(receiver), |
547 RegisterOperand(index), RegisterOperand(cache_type_array_pair), | 547 RegisterOperand(index), RegisterOperand(cache_type_array_pair), |
548 UnsignedOperand(feedback_slot)); | 548 UnsignedOperand(feedback_slot)); |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 return Bytecode::kTailCall; | 984 return Bytecode::kTailCall; |
985 default: | 985 default: |
986 UNREACHABLE(); | 986 UNREACHABLE(); |
987 } | 987 } |
988 return Bytecode::kIllegal; | 988 return Bytecode::kIllegal; |
989 } | 989 } |
990 | 990 |
991 } // namespace interpreter | 991 } // namespace interpreter |
992 } // namespace internal | 992 } // namespace internal |
993 } // namespace v8 | 993 } // namespace v8 |
OLD | NEW |