| 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/interpreter/bytecode-array-writer.h" | 9 #include "src/interpreter/bytecode-array-writer.h" |
| 10 #include "src/interpreter/bytecode-register-allocator.h" | 10 #include "src/interpreter/bytecode-register-allocator.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 static uint32_t SignedOperand(int value, OperandSize size); | 281 static uint32_t SignedOperand(int value, OperandSize size); |
| 282 static uint32_t UnsignedOperand(int value); | 282 static uint32_t UnsignedOperand(int value); |
| 283 static uint32_t UnsignedOperand(size_t value); | 283 static uint32_t UnsignedOperand(size_t value); |
| 284 | 284 |
| 285 private: | 285 private: |
| 286 friend class BytecodeRegisterAllocator; | 286 friend class BytecodeRegisterAllocator; |
| 287 | 287 |
| 288 static Bytecode BytecodeForBinaryOperation(Token::Value op); | 288 static Bytecode BytecodeForBinaryOperation(Token::Value op); |
| 289 static Bytecode BytecodeForCountOperation(Token::Value op); | 289 static Bytecode BytecodeForCountOperation(Token::Value op); |
| 290 static Bytecode BytecodeForCompareOperation(Token::Value op); | 290 static Bytecode BytecodeForCompareOperation(Token::Value op); |
| 291 static Bytecode BytecodeForStoreIC(LanguageMode language_mode); | 291 static Bytecode BytecodeForStoreNamedProperty(LanguageMode language_mode); |
| 292 static Bytecode BytecodeForKeyedStoreIC(LanguageMode language_mode); | 292 static Bytecode BytecodeForStoreKeyedProperty(LanguageMode language_mode); |
| 293 static Bytecode BytecodeForLoadGlobal(TypeofMode typeof_mode); | 293 static Bytecode BytecodeForLoadGlobal(TypeofMode typeof_mode); |
| 294 static Bytecode BytecodeForStoreGlobal(LanguageMode language_mode); | 294 static Bytecode BytecodeForStoreGlobal(LanguageMode language_mode); |
| 295 static Bytecode BytecodeForStoreLookupSlot(LanguageMode language_mode); | 295 static Bytecode BytecodeForStoreLookupSlot(LanguageMode language_mode); |
| 296 static Bytecode BytecodeForCreateArguments(CreateArgumentsType type); | 296 static Bytecode BytecodeForCreateArguments(CreateArgumentsType type); |
| 297 static Bytecode BytecodeForDelete(LanguageMode language_mode); | 297 static Bytecode BytecodeForDelete(LanguageMode language_mode); |
| 298 static Bytecode BytecodeForCall(TailCallMode tail_call_mode); | 298 static Bytecode BytecodeForCall(TailCallMode tail_call_mode); |
| 299 | 299 |
| 300 static Bytecode GetJumpWithConstantOperand(Bytecode jump_smi8_operand); | 300 static Bytecode GetJumpWithConstantOperand(Bytecode jump_smi8_operand); |
| 301 | 301 |
| 302 void Output(Bytecode bytecode); | 302 void Output(Bytecode bytecode); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 size_t offset_; | 414 size_t offset_; |
| 415 | 415 |
| 416 friend class BytecodeArrayBuilder; | 416 friend class BytecodeArrayBuilder; |
| 417 }; | 417 }; |
| 418 | 418 |
| 419 } // namespace interpreter | 419 } // namespace interpreter |
| 420 } // namespace internal | 420 } // namespace internal |
| 421 } // namespace v8 | 421 } // namespace v8 |
| 422 | 422 |
| 423 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 423 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |