Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 1400353002: [Interpreter]: Use vector store for array literal computed stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698