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/bytecode-label.h" | 10 #include "src/interpreter/bytecode-label.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 98 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
99 void VisitVariableLoadForAccumulatorValue( | 99 void VisitVariableLoadForAccumulatorValue( |
100 Variable* variable, FeedbackVectorSlot slot, | 100 Variable* variable, FeedbackVectorSlot slot, |
101 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 101 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
102 MUST_USE_RESULT Register | 102 MUST_USE_RESULT Register |
103 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, | 103 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, |
104 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 104 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
105 void VisitVariableAssignment(Variable* variable, Token::Value op, | 105 void VisitVariableAssignment(Variable* variable, Token::Value op, |
106 FeedbackVectorSlot slot); | 106 FeedbackVectorSlot slot); |
107 | 107 |
| 108 void BuildReturn(); |
| 109 void BuildReThrow(); |
108 void BuildAbort(BailoutReason bailout_reason); | 110 void BuildAbort(BailoutReason bailout_reason); |
109 void BuildThrowIfHole(Handle<String> name); | 111 void BuildThrowIfHole(Handle<String> name); |
110 void BuildThrowIfNotHole(Handle<String> name); | 112 void BuildThrowIfNotHole(Handle<String> name); |
111 void BuildThrowReferenceError(Handle<String> name); | 113 void BuildThrowReferenceError(Handle<String> name); |
112 void BuildHoleCheckForVariableLoad(Variable* variable); | 114 void BuildHoleCheckForVariableLoad(Variable* variable); |
113 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); | 115 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
114 | 116 |
115 // Build jump to targets[value], where | 117 // Build jump to targets[value], where |
116 // start_index <= value < start_index + size. | 118 // start_index <= value < start_index + size. |
117 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 119 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 216 |
215 Handle<Name> home_object_symbol_; | 217 Handle<Name> home_object_symbol_; |
216 Handle<Name> prototype_string_; | 218 Handle<Name> prototype_string_; |
217 }; | 219 }; |
218 | 220 |
219 } // namespace interpreter | 221 } // namespace interpreter |
220 } // namespace internal | 222 } // namespace internal |
221 } // namespace v8 | 223 } // namespace v8 |
222 | 224 |
223 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 225 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |