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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id, | 128 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id, |
129 Register first_arg, size_t arg_count); | 129 Register first_arg, size_t arg_count); |
130 | 130 |
131 // Operators (register holds the lhs value, accumulator holds the rhs value). | 131 // Operators (register holds the lhs value, accumulator holds the rhs value). |
132 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, | 132 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, |
133 Strength strength); | 133 Strength strength); |
134 | 134 |
135 // Unary Operators. | 135 // Unary Operators. |
136 BytecodeArrayBuilder& LogicalNot(); | 136 BytecodeArrayBuilder& LogicalNot(); |
137 BytecodeArrayBuilder& TypeOf(); | 137 BytecodeArrayBuilder& TypeOf(); |
138 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); | |
rmcilroy
2015/10/21 14:52:54
add a comment saying the "key" is expected to be i
mythria
2015/10/23 14:48:00
Done.
| |
138 | 139 |
139 // Tests. | 140 // Tests. |
140 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, | 141 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, |
141 Strength strength); | 142 Strength strength); |
142 | 143 |
143 // Casts | 144 // Casts |
144 BytecodeArrayBuilder& CastAccumulatorToBoolean(); | 145 BytecodeArrayBuilder& CastAccumulatorToBoolean(); |
145 BytecodeArrayBuilder& CastAccumulatorToName(); | 146 BytecodeArrayBuilder& CastAccumulatorToName(); |
146 | 147 |
147 // Flow Control. | 148 // Flow Control. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
287 | 288 |
288 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 289 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
289 }; | 290 }; |
290 | 291 |
291 | 292 |
292 } // namespace interpreter | 293 } // namespace interpreter |
293 } // namespace internal | 294 } // namespace internal |
294 } // namespace v8 | 295 } // namespace v8 |
295 | 296 |
296 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 297 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |