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

Side by Side Diff: src/ia32/lithium-ia32.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/hydrogen-types.cc ('k') | src/ic/ic.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 <sstream>
6
5 #include "src/v8.h" 7 #include "src/v8.h"
6 8
7 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
8 10
9 #include "src/hydrogen-osr.h" 11 #include "src/hydrogen-osr.h"
10 #include "src/ia32/lithium-codegen-ia32.h" 12 #include "src/ia32/lithium-codegen-ia32.h"
11 #include "src/lithium-inl.h" 13 #include "src/lithium-inl.h"
12 14
13 namespace v8 { 15 namespace v8 {
14 namespace internal { 16 namespace internal {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 return LDoubleStackSlot::Create(index, zone()); 360 return LDoubleStackSlot::Create(index, zone());
359 } else { 361 } else {
360 DCHECK(kind == GENERAL_REGISTERS); 362 DCHECK(kind == GENERAL_REGISTERS);
361 return LStackSlot::Create(index, zone()); 363 return LStackSlot::Create(index, zone());
362 } 364 }
363 } 365 }
364 366
365 367
366 void LStoreNamedField::PrintDataTo(StringStream* stream) { 368 void LStoreNamedField::PrintDataTo(StringStream* stream) {
367 object()->PrintTo(stream); 369 object()->PrintTo(stream);
368 OStringStream os; 370 std::ostringstream os;
369 os << hydrogen()->access() << " <- "; 371 os << hydrogen()->access() << " <- ";
370 stream->Add(os.c_str()); 372 stream->Add(os.str().c_str());
371 value()->PrintTo(stream); 373 value()->PrintTo(stream);
372 } 374 }
373 375
374 376
375 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 377 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
376 object()->PrintTo(stream); 378 object()->PrintTo(stream);
377 stream->Add("."); 379 stream->Add(".");
378 stream->Add(String::cast(*name())->ToCString().get()); 380 stream->Add(String::cast(*name())->ToCString().get());
379 stream->Add(" <- "); 381 stream->Add(" <- ");
380 value()->PrintTo(stream); 382 value()->PrintTo(stream);
(...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 LOperand* function = UseRegisterAtStart(instr->function()); 2709 LOperand* function = UseRegisterAtStart(instr->function());
2708 LAllocateBlockContext* result = 2710 LAllocateBlockContext* result =
2709 new(zone()) LAllocateBlockContext(context, function); 2711 new(zone()) LAllocateBlockContext(context, function);
2710 return MarkAsCall(DefineFixed(result, esi), instr); 2712 return MarkAsCall(DefineFixed(result, esi), instr);
2711 } 2713 }
2712 2714
2713 2715
2714 } } // namespace v8::internal 2716 } } // namespace v8::internal
2715 2717
2716 #endif // V8_TARGET_ARCH_IA32 2718 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-types.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698