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

Side by Side Diff: src/type-feedback-vector.cc

Issue 2439053002: Revert of [ic] Support data handlers that represent simple field stores. (Closed)
Patch Set: Created 4 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/type-feedback-vector.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/type-feedback-vector.h" 5 #include "src/type-feedback-vector.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/ic/ic-inl.h" 8 #include "src/ic/ic-inl.h"
9 #include "src/ic/ic-state.h" 9 #include "src/ic/ic-state.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 SetFeedback(*cell); 726 SetFeedback(*cell);
727 SetFeedbackExtra(*handler); 727 SetFeedbackExtra(*handler);
728 } else { 728 } else {
729 Handle<FixedArray> array = EnsureExtraArrayOfSize(2); 729 Handle<FixedArray> array = EnsureExtraArrayOfSize(2);
730 SetFeedback(*name); 730 SetFeedback(*name);
731 array->set(0, *cell); 731 array->set(0, *cell);
732 array->set(1, *handler); 732 array->set(1, *handler);
733 } 733 }
734 } 734 }
735 735
736
736 void StoreICNexus::ConfigureMonomorphic(Handle<Map> receiver_map, 737 void StoreICNexus::ConfigureMonomorphic(Handle<Map> receiver_map,
737 Handle<Object> handler) { 738 Handle<Code> handler) {
738 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); 739 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map);
739 SetFeedback(*cell); 740 SetFeedback(*cell);
740 SetFeedbackExtra(*handler); 741 SetFeedbackExtra(*handler);
741 } 742 }
742 743
744
743 void KeyedStoreICNexus::ConfigureMonomorphic(Handle<Name> name, 745 void KeyedStoreICNexus::ConfigureMonomorphic(Handle<Name> name,
744 Handle<Map> receiver_map, 746 Handle<Map> receiver_map,
745 Handle<Object> handler) { 747 Handle<Code> handler) {
746 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); 748 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map);
747 if (name.is_null()) { 749 if (name.is_null()) {
748 SetFeedback(*cell); 750 SetFeedback(*cell);
749 SetFeedbackExtra(*handler); 751 SetFeedbackExtra(*handler);
750 } else { 752 } else {
751 Handle<FixedArray> array = EnsureExtraArrayOfSize(2); 753 Handle<FixedArray> array = EnsureExtraArrayOfSize(2);
752 SetFeedback(*name); 754 SetFeedback(*name);
753 array->set(0, *cell); 755 array->set(0, *cell);
754 array->set(1, *handler); 756 array->set(1, *handler);
755 } 757 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 return BinaryOperationHintFromFeedback(feedback); 1073 return BinaryOperationHintFromFeedback(feedback);
1072 } 1074 }
1073 1075
1074 CompareOperationHint CompareICNexus::GetCompareOperationFeedback() const { 1076 CompareOperationHint CompareICNexus::GetCompareOperationFeedback() const {
1075 int feedback = Smi::cast(GetFeedback())->value(); 1077 int feedback = Smi::cast(GetFeedback())->value();
1076 return CompareOperationHintFromFeedback(feedback); 1078 return CompareOperationHintFromFeedback(feedback);
1077 } 1079 }
1078 1080
1079 } // namespace internal 1081 } // namespace internal
1080 } // namespace v8 1082 } // namespace v8
OLDNEW
« no previous file with comments | « src/type-feedback-vector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698