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 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace interpreter { | 9 namespace interpreter { |
10 | 10 |
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfNull(BytecodeLabel* label) { | 957 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfNull(BytecodeLabel* label) { |
958 return OutputJump(Bytecode::kJumpIfNull, label); | 958 return OutputJump(Bytecode::kJumpIfNull, label); |
959 } | 959 } |
960 | 960 |
961 | 961 |
962 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfUndefined( | 962 BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfUndefined( |
963 BytecodeLabel* label) { | 963 BytecodeLabel* label) { |
964 return OutputJump(Bytecode::kJumpIfUndefined, label); | 964 return OutputJump(Bytecode::kJumpIfUndefined, label); |
965 } | 965 } |
966 | 966 |
| 967 BytecodeArrayBuilder& BytecodeArrayBuilder::StackCheck() { |
| 968 Output(Bytecode::kStackCheck); |
| 969 return *this; |
| 970 } |
967 | 971 |
968 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { | 972 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { |
969 Output(Bytecode::kThrow); | 973 Output(Bytecode::kThrow); |
970 exit_seen_in_block_ = true; | 974 exit_seen_in_block_ = true; |
971 return *this; | 975 return *this; |
972 } | 976 } |
973 | 977 |
974 | 978 |
975 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { | 979 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { |
976 Output(Bytecode::kReThrow); | 980 Output(Bytecode::kReThrow); |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 } | 1679 } |
1676 | 1680 |
1677 // static | 1681 // static |
1678 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { | 1682 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { |
1679 return value.is_short_operand(); | 1683 return value.is_short_operand(); |
1680 } | 1684 } |
1681 | 1685 |
1682 } // namespace interpreter | 1686 } // namespace interpreter |
1683 } // namespace internal | 1687 } // namespace internal |
1684 } // namespace v8 | 1688 } // namespace v8 |
OLD | NEW |