| 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 #include "src/interpreter/bytecode-array-builder.h" | 5 #include "src/interpreter/bytecode-array-builder.h" |
| 6 | 6 |
| 7 namespace v8 { | 7 namespace v8 { |
| 8 namespace internal { | 8 namespace internal { |
| 9 namespace interpreter { | 9 namespace interpreter { |
| 10 | 10 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 if (FitsInIdx8Operand(feedback_slot)) { | 336 if (FitsInIdx8Operand(feedback_slot)) { |
| 337 Output(bytecode, object.ToOperand(), key.ToOperand(), | 337 Output(bytecode, object.ToOperand(), key.ToOperand(), |
| 338 static_cast<uint8_t>(feedback_slot)); | 338 static_cast<uint8_t>(feedback_slot)); |
| 339 } else { | 339 } else { |
| 340 UNIMPLEMENTED(); | 340 UNIMPLEMENTED(); |
| 341 } | 341 } |
| 342 return *this; | 342 return *this; |
| 343 } | 343 } |
| 344 | 344 |
| 345 | 345 |
| 346 BytecodeArrayBuilder& BytecodeArrayBuilder::GenericStoreKeyedProperty( | |
| 347 Register object, Register key) { | |
| 348 Output(Bytecode::kKeyedStoreICGeneric, object.ToOperand(), key.ToOperand()); | |
| 349 return *this; | |
| 350 } | |
| 351 | |
| 352 | |
| 353 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure( | 346 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure( |
| 354 PretenureFlag tenured) { | 347 PretenureFlag tenured) { |
| 355 DCHECK(FitsInImm8Operand(tenured)); | 348 DCHECK(FitsInImm8Operand(tenured)); |
| 356 Output(Bytecode::kCreateClosure, static_cast<uint8_t>(tenured)); | 349 Output(Bytecode::kCreateClosure, static_cast<uint8_t>(tenured)); |
| 357 return *this; | 350 return *this; |
| 358 } | 351 } |
| 359 | 352 |
| 360 | 353 |
| 361 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArrayLiteral( | 354 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArrayLiteral( |
| 362 int literal_index, int flags) { | 355 int literal_index, int flags) { |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 | 829 |
| 837 Register TemporaryRegisterScope::NewRegister() { | 830 Register TemporaryRegisterScope::NewRegister() { |
| 838 count_++; | 831 count_++; |
| 839 last_register_index_ = builder_->BorrowTemporaryRegister(); | 832 last_register_index_ = builder_->BorrowTemporaryRegister(); |
| 840 return Register(last_register_index_); | 833 return Register(last_register_index_); |
| 841 } | 834 } |
| 842 | 835 |
| 843 } // namespace interpreter | 836 } // namespace interpreter |
| 844 } // namespace internal | 837 } // namespace internal |
| 845 } // namespace v8 | 838 } // namespace v8 |
| OLD | NEW |