| 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_BYTECODES_H_ | 5 #ifndef V8_INTERPRETER_BYTECODES_H_ |
| 6 #define V8_INTERPRETER_BYTECODES_H_ | 6 #define V8_INTERPRETER_BYTECODES_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of interpreter internals. | 10 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 bool is_valid() const { return index_ != kIllegalIndex; } | 301 bool is_valid() const { return index_ != kIllegalIndex; } |
| 302 | 302 |
| 303 static Register FromParameterIndex(int index, int parameter_count); | 303 static Register FromParameterIndex(int index, int parameter_count); |
| 304 int ToParameterIndex(int parameter_count) const; | 304 int ToParameterIndex(int parameter_count) const; |
| 305 static int MaxParameterIndex(); | 305 static int MaxParameterIndex(); |
| 306 | 306 |
| 307 // Returns the register for the function's closure object. | 307 // Returns the register for the function's closure object. |
| 308 static Register function_closure(); | 308 static Register function_closure(); |
| 309 bool is_function_closure() const; | 309 bool is_function_closure() const; |
| 310 | 310 |
| 311 // Returns the register for the function's outer context. | 311 // Returns the register which holds the current context object. |
| 312 static Register function_context(); | 312 static Register current_context(); |
| 313 bool is_function_context() const; | 313 bool is_current_context() const; |
| 314 | 314 |
| 315 // Returns the register for the incoming new target value. | 315 // Returns the register for the incoming new target value. |
| 316 static Register new_target(); | 316 static Register new_target(); |
| 317 bool is_new_target() const; | 317 bool is_new_target() const; |
| 318 | 318 |
| 319 static Register FromOperand(uint8_t operand); | 319 static Register FromOperand(uint8_t operand); |
| 320 uint8_t ToOperand() const; | 320 uint8_t ToOperand() const; |
| 321 | 321 |
| 322 static Register FromWideOperand(uint16_t operand); | 322 static Register FromWideOperand(uint16_t operand); |
| 323 uint16_t ToWideOperand() const; | 323 uint16_t ToWideOperand() const; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); | 441 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| 442 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 442 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 443 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); | 443 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); |
| 444 | 444 |
| 445 } // namespace interpreter | 445 } // namespace interpreter |
| 446 } // namespace internal | 446 } // namespace internal |
| 447 } // namespace v8 | 447 } // namespace v8 |
| 448 | 448 |
| 449 #endif // V8_INTERPRETER_BYTECODES_H_ | 449 #endif // V8_INTERPRETER_BYTECODES_H_ |
| OLD | NEW |