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/bytecode-register-allocator.h" | 9 #include "src/interpreter/bytecode-register-allocator.h" |
10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Count Operators (value stored in accumulator). | 200 // Count Operators (value stored in accumulator). |
201 BytecodeArrayBuilder& CountOperation(Token::Value op, Strength strength); | 201 BytecodeArrayBuilder& CountOperation(Token::Value op, Strength strength); |
202 | 202 |
203 // Unary Operators. | 203 // Unary Operators. |
204 BytecodeArrayBuilder& LogicalNot(); | 204 BytecodeArrayBuilder& LogicalNot(); |
205 BytecodeArrayBuilder& TypeOf(); | 205 BytecodeArrayBuilder& TypeOf(); |
206 | 206 |
207 // Deletes property from an object. This expects that accumulator contains | 207 // Deletes property from an object. This expects that accumulator contains |
208 // the key to be deleted and the register contains a reference to the object. | 208 // the key to be deleted and the register contains a reference to the object. |
209 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); | 209 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); |
210 BytecodeArrayBuilder& DeleteLookupSlot(); | |
211 | 210 |
212 // Tests. | 211 // Tests. |
213 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, | 212 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, |
214 Strength strength); | 213 Strength strength); |
215 | 214 |
216 // Casts. | 215 // Casts. |
217 BytecodeArrayBuilder& CastAccumulatorToBoolean(); | 216 BytecodeArrayBuilder& CastAccumulatorToBoolean(); |
218 BytecodeArrayBuilder& CastAccumulatorToJSObject(); | 217 BytecodeArrayBuilder& CastAccumulatorToJSObject(); |
219 BytecodeArrayBuilder& CastAccumulatorToName(); | 218 BytecodeArrayBuilder& CastAccumulatorToName(); |
220 BytecodeArrayBuilder& CastAccumulatorToNumber(); | 219 BytecodeArrayBuilder& CastAccumulatorToNumber(); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 size_t offset_; | 412 size_t offset_; |
414 | 413 |
415 friend class BytecodeArrayBuilder; | 414 friend class BytecodeArrayBuilder; |
416 }; | 415 }; |
417 | 416 |
418 } // namespace interpreter | 417 } // namespace interpreter |
419 } // namespace internal | 418 } // namespace internal |
420 } // namespace v8 | 419 } // namespace v8 |
421 | 420 |
422 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 421 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |