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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 years, 10 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 return *this; 627 return *this;
628 } 628 }
629 629
630 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( 630 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral(
631 Register object, Register name, DataPropertyInLiteralFlags flags, 631 Register object, Register name, DataPropertyInLiteralFlags flags,
632 int feedback_slot) { 632 int feedback_slot) {
633 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); 633 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot);
634 return *this; 634 return *this;
635 } 635 }
636 636
637 BytecodeArrayBuilder& BytecodeArrayBuilder::CollectTypeProfile(
638 Register name, Register value, int feedback_slot) {
639 // DCHECK(FLAG_type_profile);
640 OutputCollectTypeProfile(name, value, feedback_slot);
641 return *this;
642 }
643
637 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( 644 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty(
638 Register object, size_t name_index, int feedback_slot, 645 Register object, size_t name_index, int feedback_slot,
639 LanguageMode language_mode) { 646 LanguageMode language_mode) {
640 // Ensure that language mode is in sync with the IC slot kind if the function 647 // Ensure that language mode is in sync with the IC slot kind if the function
641 // literal is available (not a unit test case). 648 // literal is available (not a unit test case).
642 // TODO(ishell): check only in debug mode. 649 // TODO(ishell): check only in debug mode.
643 if (literal_) { 650 if (literal_) {
644 FeedbackSlot slot = FeedbackVector::ToSlot(feedback_slot); 651 FeedbackSlot slot = FeedbackVector::ToSlot(feedback_slot);
645 CHECK_EQ(GetLanguageModeFromSlotKind(feedback_vector_spec()->GetKind(slot)), 652 CHECK_EQ(GetLanguageModeFromSlotKind(feedback_vector_spec()->GetKind(slot)),
646 language_mode); 653 language_mode);
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 RegisterList reg_list) { 1184 RegisterList reg_list) {
1178 DCHECK(RegisterListIsValid(reg_list)); 1185 DCHECK(RegisterListIsValid(reg_list));
1179 if (register_optimizer_) 1186 if (register_optimizer_)
1180 register_optimizer_->PrepareOutputRegisterList(reg_list); 1187 register_optimizer_->PrepareOutputRegisterList(reg_list);
1181 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1188 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1182 } 1189 }
1183 1190
1184 } // namespace interpreter 1191 } // namespace interpreter
1185 } // namespace internal 1192 } // namespace internal
1186 } // namespace v8 1193 } // 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