OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |