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

Side by Side Diff: src/ic/ic.cc

Issue 2045013005: [ic] always print short for of keys with --trace-print (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebasing Created 4 years, 6 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 | « no previous file | 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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698