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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 BytecodeArrayBuilder& Jump(BytecodeLabel* label); | 265 BytecodeArrayBuilder& Jump(BytecodeLabel* label); |
266 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); | 266 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); |
267 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); | 267 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); |
268 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label); | 268 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label); |
269 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); | 269 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); |
270 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); | 270 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); |
271 BytecodeArrayBuilder& JumpLoop(BytecodeLabel* label, int loop_depth); | 271 BytecodeArrayBuilder& JumpLoop(BytecodeLabel* label, int loop_depth); |
272 | 272 |
273 BytecodeArrayBuilder& StackCheck(int position); | 273 BytecodeArrayBuilder& StackCheck(int position); |
274 | 274 |
| 275 // Sets the pending message to the value in the accumulator, and returns the |
| 276 // previous pending message in the accumulator. |
| 277 BytecodeArrayBuilder& SetPendingMessage(); |
| 278 |
275 BytecodeArrayBuilder& Throw(); | 279 BytecodeArrayBuilder& Throw(); |
276 BytecodeArrayBuilder& ReThrow(); | 280 BytecodeArrayBuilder& ReThrow(); |
277 BytecodeArrayBuilder& Return(); | 281 BytecodeArrayBuilder& Return(); |
278 | 282 |
279 // Debugger. | 283 // Debugger. |
280 BytecodeArrayBuilder& Debugger(); | 284 BytecodeArrayBuilder& Debugger(); |
281 | 285 |
282 // Complex flow control. | 286 // Complex flow control. |
283 BytecodeArrayBuilder& ForInPrepare(Register receiver, | 287 BytecodeArrayBuilder& ForInPrepare(Register receiver, |
284 RegisterList cache_info_triple); | 288 RegisterList cache_info_triple); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 static int const kNoFeedbackSlot = 0; | 415 static int const kNoFeedbackSlot = 0; |
412 | 416 |
413 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 417 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
414 }; | 418 }; |
415 | 419 |
416 } // namespace interpreter | 420 } // namespace interpreter |
417 } // namespace internal | 421 } // namespace internal |
418 } // namespace v8 | 422 } // namespace v8 |
419 | 423 |
420 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 424 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |