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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, | 227 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, |
228 int feedback_slot); | 228 int feedback_slot); |
229 | 229 |
230 // Count Operators (value stored in accumulator). | 230 // Count Operators (value stored in accumulator). |
231 // Type feedback will be recorded in the |feedback_slot| | 231 // Type feedback will be recorded in the |feedback_slot| |
232 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot); | 232 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot); |
233 | 233 |
234 // Unary Operators. | 234 // Unary Operators. |
235 BytecodeArrayBuilder& LogicalNot(); | 235 BytecodeArrayBuilder& LogicalNot(); |
236 BytecodeArrayBuilder& TypeOf(); | 236 BytecodeArrayBuilder& TypeOf(); |
237 BytecodeArrayBuilder& GetSuperConstructor(); | |
rmcilroy
2016/11/23 21:55:37
Please move this to it's own section and describe
| |
237 | 238 |
238 // Deletes property from an object. This expects that accumulator contains | 239 // Deletes property from an object. This expects that accumulator contains |
239 // the key to be deleted and the register contains a reference to the object. | 240 // the key to be deleted and the register contains a reference to the object. |
240 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); | 241 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); |
241 | 242 |
242 // Tests. | 243 // Tests. |
243 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, | 244 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, |
244 int feedback_slot = kNoFeedbackSlot); | 245 int feedback_slot = kNoFeedbackSlot); |
245 | 246 |
246 // Converts accumulator and stores result in register |out|. | 247 // Converts accumulator and stores result in register |out|. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
411 static int const kNoFeedbackSlot = 0; | 412 static int const kNoFeedbackSlot = 0; |
412 | 413 |
413 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 414 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
414 }; | 415 }; |
415 | 416 |
416 } // namespace interpreter | 417 } // namespace interpreter |
417 } // namespace internal | 418 } // namespace internal |
418 } // namespace v8 | 419 } // namespace v8 |
419 | 420 |
420 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 421 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |