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_ARRAY_BUILDER_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
10 #include "src/interpreter/constant-array-builder.h" | 10 #include "src/interpreter/constant-array-builder.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 BytecodeArrayBuilder& Jump(BytecodeLabel* label); | 214 BytecodeArrayBuilder& Jump(BytecodeLabel* label); |
215 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); | 215 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); |
216 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); | 216 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); |
217 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); | 217 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); |
218 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); | 218 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); |
219 | 219 |
220 BytecodeArrayBuilder& Throw(); | 220 BytecodeArrayBuilder& Throw(); |
221 BytecodeArrayBuilder& Return(); | 221 BytecodeArrayBuilder& Return(); |
222 | 222 |
223 // Complex flow control. | 223 // Complex flow control. |
224 BytecodeArrayBuilder& ForInPrepare(Register cache_type, Register cache_array, | 224 BytecodeArrayBuilder& ForInPrepare(Register first_register); |
225 Register cache_length); | |
226 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length); | 225 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length); |
227 BytecodeArrayBuilder& ForInNext(Register receiver, Register cache_type, | 226 BytecodeArrayBuilder& ForInNext(Register receiver, Register index, |
228 Register cache_array, Register index); | 227 Register cache_register_pair); |
oth
2016/01/13 15:28:58
The name of the third argument differs in the .cc
rmcilroy
2016/01/18 09:40:49
Good idea, done.
| |
229 BytecodeArrayBuilder& ForInStep(Register index); | 228 BytecodeArrayBuilder& ForInStep(Register index); |
230 | 229 |
231 // Accessors | 230 // Accessors |
232 Zone* zone() const { return zone_; } | 231 Zone* zone() const { return zone_; } |
233 | 232 |
234 private: | 233 private: |
235 ZoneVector<uint8_t>* bytecodes() { return &bytecodes_; } | 234 ZoneVector<uint8_t>* bytecodes() { return &bytecodes_; } |
236 const ZoneVector<uint8_t>* bytecodes() const { return &bytecodes_; } | 235 const ZoneVector<uint8_t>* bytecodes() const { return &bytecodes_; } |
237 Isolate* isolate() const { return isolate_; } | 236 Isolate* isolate() const { return isolate_; } |
238 ConstantArrayBuilder* constant_array_builder() { | 237 ConstantArrayBuilder* constant_array_builder() { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
411 | 410 |
412 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 411 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
413 }; | 412 }; |
414 | 413 |
415 | 414 |
416 } // namespace interpreter | 415 } // namespace interpreter |
417 } // namespace internal | 416 } // namespace internal |
418 } // namespace v8 | 417 } // namespace v8 |
419 | 418 |
420 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 419 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |