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/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 BytecodeArrayBuilder& ConvertAccumulatorToNumber(Register out); | 267 BytecodeArrayBuilder& ConvertAccumulatorToNumber(Register out); |
268 | 268 |
269 // Flow Control. | 269 // Flow Control. |
270 BytecodeArrayBuilder& Bind(BytecodeLabel* label); | 270 BytecodeArrayBuilder& Bind(BytecodeLabel* label); |
271 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label); | 271 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label); |
272 | 272 |
273 BytecodeArrayBuilder& Jump(BytecodeLabel* label); | 273 BytecodeArrayBuilder& Jump(BytecodeLabel* label); |
274 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); | 274 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); |
275 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); | 275 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); |
276 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label); | 276 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label); |
| 277 BytecodeArrayBuilder& JumpIfJSReceiver(BytecodeLabel* label); |
277 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); | 278 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); |
278 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); | 279 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); |
279 BytecodeArrayBuilder& JumpLoop(BytecodeLabel* label, int loop_depth); | 280 BytecodeArrayBuilder& JumpLoop(BytecodeLabel* label, int loop_depth); |
280 | 281 |
281 BytecodeArrayBuilder& StackCheck(int position); | 282 BytecodeArrayBuilder& StackCheck(int position); |
282 | 283 |
283 // Sets the pending message to the value in the accumulator, and returns the | 284 // Sets the pending message to the value in the accumulator, and returns the |
284 // previous pending message in the accumulator. | 285 // previous pending message in the accumulator. |
285 BytecodeArrayBuilder& SetPendingMessage(); | 286 BytecodeArrayBuilder& SetPendingMessage(); |
286 | 287 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 static int const kNoFeedbackSlot = 0; | 424 static int const kNoFeedbackSlot = 0; |
424 | 425 |
425 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 426 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
426 }; | 427 }; |
427 | 428 |
428 } // namespace interpreter | 429 } // namespace interpreter |
429 } // namespace internal | 430 } // namespace internal |
430 } // namespace v8 | 431 } // namespace v8 |
431 | 432 |
432 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 433 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |