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

Side by Side Diff: src/ic.cc

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/jsregexp.cc » ('j') | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ExtraICState extra_state = new_target->extra_ic_state(); 70 ExtraICState extra_state = new_target->extra_ic_state();
71 const char* modifier = ""; 71 const char* modifier = "";
72 if (new_target->kind() == Code::KEYED_STORE_IC) { 72 if (new_target->kind() == Code::KEYED_STORE_IC) {
73 modifier = GetTransitionMarkModifier( 73 modifier = GetTransitionMarkModifier(
74 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); 74 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state));
75 } 75 }
76 PrintF(" (%c->%c%s)", 76 PrintF(" (%c->%c%s)",
77 TransitionMarkFromState(state()), 77 TransitionMarkFromState(state()),
78 TransitionMarkFromState(new_state), 78 TransitionMarkFromState(new_state),
79 modifier); 79 modifier);
80 name->Print(); 80 OFStream os(stdout);
81 name->Print(os);
81 PrintF("]\n"); 82 PrintF("]\n");
82 } 83 }
83 } 84 }
84 85
85 #define TRACE_GENERIC_IC(isolate, type, reason) \ 86 #define TRACE_GENERIC_IC(isolate, type, reason) \
86 do { \ 87 do { \
87 if (FLAG_trace_ic) { \ 88 if (FLAG_trace_ic) { \
88 PrintF("[%s patching generic stub in ", type); \ 89 PrintF("[%s patching generic stub in ", type); \
89 JavaScriptFrame::PrintTop(isolate, stdout, false, true); \ 90 JavaScriptFrame::PrintTop(isolate, stdout, false, true); \
90 PrintF(" (%s)]\n", reason); \ 91 PrintF(" (%s)]\n", reason); \
(...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 #undef ADDR 3074 #undef ADDR
3074 }; 3075 };
3075 3076
3076 3077
3077 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3078 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3078 return IC_utilities[id]; 3079 return IC_utilities[id];
3079 } 3080 }
3080 3081
3081 3082
3082 } } // namespace v8::internal 3083 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698