| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/ic/ic.h" | 5 #include "src/ic/ic.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api-arguments-inl.h" | 8 #include "src/api-arguments-inl.h" |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 KeyedAccessStoreMode mode = | 125 KeyedAccessStoreMode mode = |
| 126 casted_nexus<KeyedStoreICNexus>()->GetKeyedAccessStoreMode(); | 126 casted_nexus<KeyedStoreICNexus>()->GetKeyedAccessStoreMode(); |
| 127 modifier = GetTransitionMarkModifier(mode); | 127 modifier = GetTransitionMarkModifier(mode); |
| 128 } | 128 } |
| 129 void* map = nullptr; | 129 void* map = nullptr; |
| 130 if (!receiver_map().is_null()) { | 130 if (!receiver_map().is_null()) { |
| 131 map = reinterpret_cast<void*>(*receiver_map()); | 131 map = reinterpret_cast<void*>(*receiver_map()); |
| 132 } | 132 } |
| 133 PrintF(" (%c->%c%s) map=%p ", TransitionMarkFromState(old_state), | 133 PrintF(" (%c->%c%s) map=%p ", TransitionMarkFromState(old_state), |
| 134 TransitionMarkFromState(new_state), modifier, map); | 134 TransitionMarkFromState(new_state), modifier, map); |
| 135 #ifdef OBJECT_PRINT | |
| 136 OFStream os(stdout); | |
| 137 name->Print(os); | |
| 138 #else | |
| 139 name->ShortPrint(stdout); | 135 name->ShortPrint(stdout); |
| 140 #endif | |
| 141 PrintF("]\n"); | 136 PrintF("]\n"); |
| 142 } | 137 } |
| 143 } | 138 } |
| 144 | 139 |
| 145 | 140 |
| 146 #define TRACE_IC(type, name) TraceIC(type, name) | 141 #define TRACE_IC(type, name) TraceIC(type, name) |
| 147 | 142 |
| 148 | 143 |
| 149 IC::IC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus) | 144 IC::IC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus) |
| 150 : isolate_(isolate), | 145 : isolate_(isolate), |
| (...skipping 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 DCHECK_EQ(FeedbackVectorSlotKind::KEYED_LOAD_IC, | 2938 DCHECK_EQ(FeedbackVectorSlotKind::KEYED_LOAD_IC, |
| 2944 vector->GetKind(vector_slot)); | 2939 vector->GetKind(vector_slot)); |
| 2945 KeyedLoadICNexus nexus(vector, vector_slot); | 2940 KeyedLoadICNexus nexus(vector, vector_slot); |
| 2946 KeyedLoadIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); | 2941 KeyedLoadIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); |
| 2947 ic.UpdateState(receiver, key); | 2942 ic.UpdateState(receiver, key); |
| 2948 RETURN_RESULT_OR_FAILURE(isolate, ic.Load(receiver, key)); | 2943 RETURN_RESULT_OR_FAILURE(isolate, ic.Load(receiver, key)); |
| 2949 } | 2944 } |
| 2950 } | 2945 } |
| 2951 } // namespace internal | 2946 } // namespace internal |
| 2952 } // namespace v8 | 2947 } // namespace v8 |
| OLD | NEW |