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