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

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

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Delete unused var Created 3 years, 9 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
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 return *this; 625 return *this;
626 } 626 }
627 627
628 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( 628 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral(
629 Register object, Register name, DataPropertyInLiteralFlags flags, 629 Register object, Register name, DataPropertyInLiteralFlags flags,
630 int feedback_slot) { 630 int feedback_slot) {
631 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); 631 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot);
632 return *this; 632 return *this;
633 } 633 }
634 634
635 BytecodeArrayBuilder& BytecodeArrayBuilder::CollectTypeProfile(
636 Register name, int feedback_slot) {
637 DCHECK(FLAG_type_profile);
638 OutputCollectTypeProfile(name, feedback_slot);
639 return *this;
640 }
641
635 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( 642 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty(
636 Register object, size_t name_index, int feedback_slot, 643 Register object, size_t name_index, int feedback_slot,
637 LanguageMode language_mode) { 644 LanguageMode language_mode) {
638 // Ensure that language mode is in sync with the IC slot kind if the function 645 // Ensure that language mode is in sync with the IC slot kind if the function
639 // literal is available (not a unit test case). 646 // literal is available (not a unit test case).
640 // TODO(ishell): check only in debug mode. 647 // TODO(ishell): check only in debug mode.
641 if (literal_) { 648 if (literal_) {
642 FeedbackSlot slot = FeedbackVector::ToSlot(feedback_slot); 649 FeedbackSlot slot = FeedbackVector::ToSlot(feedback_slot);
643 CHECK_EQ(GetLanguageModeFromSlotKind(feedback_vector_spec()->GetKind(slot)), 650 CHECK_EQ(GetLanguageModeFromSlotKind(feedback_vector_spec()->GetKind(slot)),
644 language_mode); 651 language_mode);
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 RegisterList reg_list) { 1197 RegisterList reg_list) {
1191 DCHECK(RegisterListIsValid(reg_list)); 1198 DCHECK(RegisterListIsValid(reg_list));
1192 if (register_optimizer_) 1199 if (register_optimizer_)
1193 register_optimizer_->PrepareOutputRegisterList(reg_list); 1200 register_optimizer_->PrepareOutputRegisterList(reg_list);
1194 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1201 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1195 } 1202 }
1196 1203
1197 } // namespace interpreter 1204 } // namespace interpreter
1198 } // namespace internal 1205 } // namespace internal
1199 } // namespace v8 1206 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698