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

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

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 2 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/ic/ic-state.h » ('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/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2226 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 set_target(*target); 2237 set_target(*target);
2238 2238
2239 if (FLAG_trace_ic) { 2239 if (FLAG_trace_ic) {
2240 OFStream os(stdout); 2240 OFStream os(stdout);
2241 os << "[BinaryOpIC" << old_state << " => " << state << " @ " 2241 os << "[BinaryOpIC" << old_state << " => " << state << " @ "
2242 << static_cast<void*>(*target) << " <- "; 2242 << static_cast<void*>(*target) << " <- ";
2243 JavaScriptFrame::PrintTop(isolate(), stdout, false, true); 2243 JavaScriptFrame::PrintTop(isolate(), stdout, false, true);
2244 if (!allocation_site.is_null()) { 2244 if (!allocation_site.is_null()) {
2245 os << " using allocation site " << static_cast<void*>(*allocation_site); 2245 os << " using allocation site " << static_cast<void*>(*allocation_site);
2246 } 2246 }
2247 os << "]" << endl; 2247 os << "]" << std::endl;
2248 } 2248 }
2249 2249
2250 // Patch the inlined smi code as necessary. 2250 // Patch the inlined smi code as necessary.
2251 if (!old_state.UseInlinedSmiCode() && state.UseInlinedSmiCode()) { 2251 if (!old_state.UseInlinedSmiCode() && state.UseInlinedSmiCode()) {
2252 PatchInlinedSmiCode(address(), ENABLE_INLINED_SMI_CHECK); 2252 PatchInlinedSmiCode(address(), ENABLE_INLINED_SMI_CHECK);
2253 } else if (old_state.UseInlinedSmiCode() && !state.UseInlinedSmiCode()) { 2253 } else if (old_state.UseInlinedSmiCode() && !state.UseInlinedSmiCode()) {
2254 PatchInlinedSmiCode(address(), DISABLE_INLINED_SMI_CHECK); 2254 PatchInlinedSmiCode(address(), DISABLE_INLINED_SMI_CHECK);
2255 } 2255 }
2256 2256
2257 return result; 2257 return result;
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 static const Address IC_utilities[] = { 2656 static const Address IC_utilities[] = {
2657 #define ADDR(name) FUNCTION_ADDR(name), 2657 #define ADDR(name) FUNCTION_ADDR(name),
2658 IC_UTIL_LIST(ADDR) NULL 2658 IC_UTIL_LIST(ADDR) NULL
2659 #undef ADDR 2659 #undef ADDR
2660 }; 2660 };
2661 2661
2662 2662
2663 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 2663 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
2664 } 2664 }
2665 } // namespace v8::internal 2665 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ic/ic-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698