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

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

Issue 2587393006: [runtime] Collect IC feedback in DefineDataPropertyInLiteral. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 return *this; 547 return *this;
548 } 548 }
549 549
550 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty( 550 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty(
551 Register object, int feedback_slot) { 551 Register object, int feedback_slot) {
552 OutputLdaKeyedProperty(object, feedback_slot); 552 OutputLdaKeyedProperty(object, feedback_slot);
553 return *this; 553 return *this;
554 } 554 }
555 555
556 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( 556 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral(
557 Register object, Register name, Register value, 557 Register object, Register name, DataPropertyInLiteralFlags flags,
558 DataPropertyInLiteralFlags flags) { 558 int feedback_slot) {
559 OutputStaDataPropertyInLiteral(object, name, value, flags); 559 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot);
560 return *this; 560 return *this;
561 } 561 }
562 562
563 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( 563 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty(
564 Register object, const Handle<Name> name, int feedback_slot, 564 Register object, const Handle<Name> name, int feedback_slot,
565 LanguageMode language_mode) { 565 LanguageMode language_mode) {
566 size_t name_index = GetConstantPoolEntry(name); 566 size_t name_index = GetConstantPoolEntry(name);
567 if (language_mode == SLOPPY) { 567 if (language_mode == SLOPPY) {
568 OutputStaNamedPropertySloppy(object, name_index, feedback_slot); 568 OutputStaNamedPropertySloppy(object, name_index, feedback_slot);
569 } else { 569 } else {
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 RegisterList reg_list) { 1046 RegisterList reg_list) {
1047 DCHECK(RegisterListIsValid(reg_list)); 1047 DCHECK(RegisterListIsValid(reg_list));
1048 if (register_optimizer_) 1048 if (register_optimizer_)
1049 register_optimizer_->PrepareOutputRegisterList(reg_list); 1049 register_optimizer_->PrepareOutputRegisterList(reg_list);
1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1051 } 1051 }
1052 1052
1053 } // namespace interpreter 1053 } // namespace interpreter
1054 } // namespace internal 1054 } // namespace internal
1055 } // namespace v8 1055 } // 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