| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/ast.h" | 10 #include "src/ast.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 ZoneVector<uint8_t>::iterator jump_location); | 244 ZoneVector<uint8_t>::iterator jump_location); |
| 245 | 245 |
| 246 void LeaveBasicBlock(); | 246 void LeaveBasicBlock(); |
| 247 void EnsureReturn(); | 247 void EnsureReturn(); |
| 248 | 248 |
| 249 bool OperandIsValid(Bytecode bytecode, int operand_index, | 249 bool OperandIsValid(Bytecode bytecode, int operand_index, |
| 250 uint32_t operand_value) const; | 250 uint32_t operand_value) const; |
| 251 bool LastBytecodeInSameBlock() const; | 251 bool LastBytecodeInSameBlock() const; |
| 252 | 252 |
| 253 bool NeedToBooleanCast(); | 253 bool NeedToBooleanCast(); |
| 254 bool IsRegisterInAccumulator(Register reg); |
| 254 | 255 |
| 255 int BorrowTemporaryRegister(); | 256 int BorrowTemporaryRegister(); |
| 256 void ReturnTemporaryRegister(int reg_index); | 257 void ReturnTemporaryRegister(int reg_index); |
| 257 int PrepareForConsecutiveTemporaryRegisters(size_t count); | 258 int PrepareForConsecutiveTemporaryRegisters(size_t count); |
| 258 void BorrowConsecutiveTemporaryRegister(int reg_index); | 259 void BorrowConsecutiveTemporaryRegister(int reg_index); |
| 259 bool TemporaryRegisterIsLive(Register reg) const; | 260 bool TemporaryRegisterIsLive(Register reg) const; |
| 260 | 261 |
| 261 Register first_temporary_register() const; | 262 Register first_temporary_register() const; |
| 262 Register last_temporary_register() const; | 263 Register last_temporary_register() const; |
| 263 | 264 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 351 |
| 351 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 352 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 | 355 |
| 355 } // namespace interpreter | 356 } // namespace interpreter |
| 356 } // namespace internal | 357 } // namespace internal |
| 357 } // namespace v8 | 358 } // namespace v8 |
| 358 | 359 |
| 359 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 360 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |