| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 int feedback_slot); | 251 int feedback_slot); |
| 252 | 252 |
| 253 // Count Operators (value stored in accumulator). | 253 // Count Operators (value stored in accumulator). |
| 254 // Type feedback will be recorded in the |feedback_slot| | 254 // Type feedback will be recorded in the |feedback_slot| |
| 255 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot); | 255 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot); |
| 256 | 256 |
| 257 // Unary Operators. | 257 // Unary Operators. |
| 258 BytecodeArrayBuilder& LogicalNot(); | 258 BytecodeArrayBuilder& LogicalNot(); |
| 259 BytecodeArrayBuilder& TypeOf(); | 259 BytecodeArrayBuilder& TypeOf(); |
| 260 | 260 |
| 261 // Expects a heap object in the accumulator. Returns its super constructor in |
| 262 // the register |out| if it passes the IsConstructor test. Otherwise, it |
| 263 // throws a TypeError exception. |
| 264 BytecodeArrayBuilder& GetSuperConstructor(Register out); |
| 265 |
| 261 // Deletes property from an object. This expects that accumulator contains | 266 // Deletes property from an object. This expects that accumulator contains |
| 262 // the key to be deleted and the register contains a reference to the object. | 267 // the key to be deleted and the register contains a reference to the object. |
| 263 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); | 268 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); |
| 264 | 269 |
| 265 // Tests. | 270 // Tests. |
| 266 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, | 271 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, |
| 267 int feedback_slot = kNoFeedbackSlot); | 272 int feedback_slot = kNoFeedbackSlot); |
| 268 | 273 |
| 269 // Converts accumulator and stores result in register |out|. | 274 // Converts accumulator and stores result in register |out|. |
| 270 BytecodeArrayBuilder& ConvertAccumulatorToObject(Register out); | 275 BytecodeArrayBuilder& ConvertAccumulatorToObject(Register out); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 static int const kNoFeedbackSlot = 0; | 433 static int const kNoFeedbackSlot = 0; |
| 429 | 434 |
| 430 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 435 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
| 431 }; | 436 }; |
| 432 | 437 |
| 433 } // namespace interpreter | 438 } // namespace interpreter |
| 434 } // namespace internal | 439 } // namespace internal |
| 435 } // namespace v8 | 440 } // namespace v8 |
| 436 | 441 |
| 437 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 442 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |