| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 ZoneVector<uint8_t>* bytecodes() { return &bytecodes_; } | 177 ZoneVector<uint8_t>* bytecodes() { return &bytecodes_; } |
| 178 const ZoneVector<uint8_t>* bytecodes() const { return &bytecodes_; } | 178 const ZoneVector<uint8_t>* bytecodes() const { return &bytecodes_; } |
| 179 Isolate* isolate() const { return isolate_; } | 179 Isolate* isolate() const { return isolate_; } |
| 180 | 180 |
| 181 static Bytecode BytecodeForBinaryOperation(Token::Value op); | 181 static Bytecode BytecodeForBinaryOperation(Token::Value op); |
| 182 static Bytecode BytecodeForCompareOperation(Token::Value op); | 182 static Bytecode BytecodeForCompareOperation(Token::Value op); |
| 183 static Bytecode BytecodeForLoadIC(LanguageMode language_mode); | 183 static Bytecode BytecodeForLoadIC(LanguageMode language_mode); |
| 184 static Bytecode BytecodeForKeyedLoadIC(LanguageMode language_mode); | 184 static Bytecode BytecodeForKeyedLoadIC(LanguageMode language_mode); |
| 185 static Bytecode BytecodeForStoreIC(LanguageMode language_mode); | 185 static Bytecode BytecodeForStoreIC(LanguageMode language_mode); |
| 186 static Bytecode BytecodeForKeyedStoreIC(LanguageMode language_mode); | 186 static Bytecode BytecodeForKeyedStoreIC(LanguageMode language_mode); |
| 187 static Bytecode BytecodeForStoreGlobal(LanguageMode language_mode); | |
| 188 | 187 |
| 189 static bool FitsInIdx8Operand(int value); | 188 static bool FitsInIdx8Operand(int value); |
| 190 static bool FitsInIdx8Operand(size_t value); | 189 static bool FitsInIdx8Operand(size_t value); |
| 191 static bool FitsInImm8Operand(int value); | 190 static bool FitsInImm8Operand(int value); |
| 192 static bool FitsInIdx16Operand(int value); | 191 static bool FitsInIdx16Operand(int value); |
| 193 | 192 |
| 194 static Bytecode GetJumpWithConstantOperand(Bytecode jump_with_smi8_operand); | 193 static Bytecode GetJumpWithConstantOperand(Bytecode jump_with_smi8_operand); |
| 195 | 194 |
| 196 template <size_t N> | 195 template <size_t N> |
| 197 INLINE(void Output(Bytecode bytecode, uint32_t(&oprands)[N])); | 196 INLINE(void Output(Bytecode bytecode, uint32_t(&oprands)[N])); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 308 |
| 310 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 309 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
| 311 }; | 310 }; |
| 312 | 311 |
| 313 | 312 |
| 314 } // namespace interpreter | 313 } // namespace interpreter |
| 315 } // namespace internal | 314 } // namespace internal |
| 316 } // namespace v8 | 315 } // namespace v8 |
| 317 | 316 |
| 318 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 317 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |