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

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

Issue 2670863003: [stubs] Port KeyedStoreIC_Slow/Miss and StoreSlowElementStub to TF. (Closed)
Patch Set: 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/ic/x87/ic-x87.cc ('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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 if (maybe_code_handler->IsTuple2()) { 966 if (maybe_code_handler->IsTuple2()) {
967 Handle<Tuple2> data_handler = Handle<Tuple2>::cast(maybe_code_handler); 967 Handle<Tuple2> data_handler = Handle<Tuple2>::cast(maybe_code_handler);
968 handler = handle(Code::cast(data_handler->value2())); 968 handler = handle(Code::cast(data_handler->value2()));
969 } else { 969 } else {
970 handler = Handle<Code>::cast(maybe_code_handler); 970 handler = Handle<Code>::cast(maybe_code_handler);
971 } 971 }
972 CodeStub::Major major_key = CodeStub::MajorKeyFromKey(handler->stub_key()); 972 CodeStub::Major major_key = CodeStub::MajorKeyFromKey(handler->stub_key());
973 uint32_t minor_key = CodeStub::MinorKeyFromKey(handler->stub_key()); 973 uint32_t minor_key = CodeStub::MinorKeyFromKey(handler->stub_key());
974 CHECK(major_key == CodeStub::KeyedStoreSloppyArguments || 974 CHECK(major_key == CodeStub::KeyedStoreSloppyArguments ||
975 major_key == CodeStub::StoreFastElement || 975 major_key == CodeStub::StoreFastElement ||
976 major_key == CodeStub::StoreElement || 976 major_key == CodeStub::StoreSlowElement ||
977 major_key == CodeStub::ElementsTransitionAndStore || 977 major_key == CodeStub::ElementsTransitionAndStore ||
978 major_key == CodeStub::NoCache); 978 major_key == CodeStub::NoCache);
979 if (major_key != CodeStub::NoCache) { 979 if (major_key != CodeStub::NoCache) {
980 mode = CommonStoreModeBits::decode(minor_key); 980 mode = CommonStoreModeBits::decode(minor_key);
981 break; 981 break;
982 } 982 }
983 } 983 }
984 984
985 return mode; 985 return mode;
986 } 986 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 void StoreDataPropertyInLiteralICNexus::ConfigureMonomorphic( 1050 void StoreDataPropertyInLiteralICNexus::ConfigureMonomorphic(
1051 Handle<Name> name, Handle<Map> receiver_map) { 1051 Handle<Name> name, Handle<Map> receiver_map) {
1052 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); 1052 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map);
1053 1053
1054 SetFeedback(*cell); 1054 SetFeedback(*cell);
1055 SetFeedbackExtra(*name); 1055 SetFeedbackExtra(*name);
1056 } 1056 }
1057 1057
1058 } // namespace internal 1058 } // namespace internal
1059 } // namespace v8 1059 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/x87/ic-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698