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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 HoleCheckMode hole_check_mode, | 103 HoleCheckMode hole_check_mode, |
104 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 104 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
105 void BuildVariableAssignment(Variable* variable, Token::Value op, | 105 void BuildVariableAssignment(Variable* variable, Token::Value op, |
106 FeedbackVectorSlot slot, | 106 FeedbackVectorSlot slot, |
107 HoleCheckMode hole_check_mode); | 107 HoleCheckMode hole_check_mode); |
108 | 108 |
109 void BuildReturn(); | 109 void BuildReturn(); |
110 void BuildReThrow(); | 110 void BuildReThrow(); |
111 void BuildAbort(BailoutReason bailout_reason); | 111 void BuildAbort(BailoutReason bailout_reason); |
112 void BuildThrowIfHole(Handle<String> name); | 112 void BuildThrowIfHole(Handle<String> name); |
113 void BuildThrowIfNotHole(Handle<String> name); | |
114 void BuildThrowReferenceError(Handle<String> name); | 113 void BuildThrowReferenceError(Handle<String> name); |
115 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); | 114 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
116 | 115 |
117 // Build jump to targets[value], where | 116 // Build jump to targets[value], where |
118 // start_index <= value < start_index + size. | 117 // start_index <= value < start_index + size. |
119 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 118 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
120 ZoneVector<BytecodeLabel>& targets); | 119 ZoneVector<BytecodeLabel>& targets); |
121 | 120 |
122 void BuildNewLocalActivationContext(); | 121 void BuildNewLocalActivationContext(); |
123 void BuildLocalActivationContextInitialization(); | 122 void BuildLocalActivationContextInitialization(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 Handle<Name> prototype_string_; | 226 Handle<Name> prototype_string_; |
228 Handle<FixedArray> empty_fixed_array_; | 227 Handle<FixedArray> empty_fixed_array_; |
229 const AstRawString* undefined_string_; | 228 const AstRawString* undefined_string_; |
230 }; | 229 }; |
231 | 230 |
232 } // namespace interpreter | 231 } // namespace interpreter |
233 } // namespace internal | 232 } // namespace internal |
234 } // namespace v8 | 233 } // namespace v8 |
235 | 234 |
236 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 235 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |