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 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/interpreter/bytecode-array-builder.h" | 9 #include "src/interpreter/bytecode-array-builder.h" |
10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 void BuildNamedSuperPropertyStore(Register receiver, Register home_object, | 99 void BuildNamedSuperPropertyStore(Register receiver, Register home_object, |
100 Register name, Register value); | 100 Register name, Register value); |
101 void BuildKeyedSuperPropertyStore(Register receiver, Register home_object, | 101 void BuildKeyedSuperPropertyStore(Register receiver, Register home_object, |
102 Register key, Register value); | 102 Register key, Register value); |
103 void BuildNamedSuperPropertyLoad(Register receiver, Register home_object, | 103 void BuildNamedSuperPropertyLoad(Register receiver, Register home_object, |
104 Register name); | 104 Register name); |
105 void BuildKeyedSuperPropertyLoad(Register receiver, Register home_object, | 105 void BuildKeyedSuperPropertyLoad(Register receiver, Register home_object, |
106 Register key); | 106 Register key); |
107 | 107 |
| 108 void BuildAbort(BailoutReason bailout_reason); |
108 void BuildThrowIfHole(Handle<String> name); | 109 void BuildThrowIfHole(Handle<String> name); |
109 void BuildThrowIfNotHole(Handle<String> name); | 110 void BuildThrowIfNotHole(Handle<String> name); |
110 void BuildThrowReassignConstant(Handle<String> name); | 111 void BuildThrowReassignConstant(Handle<String> name); |
111 void BuildThrowReferenceError(Handle<String> name); | 112 void BuildThrowReferenceError(Handle<String> name); |
112 void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); | 113 void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); |
113 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); | 114 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
114 | 115 |
115 // Build jump to targets[value], where | 116 // Build jump to targets[value], where |
116 // start_index <= value < start_index + size. | 117 // start_index <= value < start_index + size. |
117 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 118 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 Register generator_state_; | 216 Register generator_state_; |
216 int try_catch_nesting_level_; | 217 int try_catch_nesting_level_; |
217 int try_finally_nesting_level_; | 218 int try_finally_nesting_level_; |
218 }; | 219 }; |
219 | 220 |
220 } // namespace interpreter | 221 } // namespace interpreter |
221 } // namespace internal | 222 } // namespace internal |
222 } // namespace v8 | 223 } // namespace v8 |
223 | 224 |
224 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 225 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |