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

Side by Side Diff: src/x87/lithium-x87.cc

Issue 635203002: X87: Replace OStream with std::ostream. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: 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
« 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 <sstream>
6
5 #include "src/v8.h" 7 #include "src/v8.h"
6 8
7 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
8 10
9 #include "src/hydrogen-osr.h" 11 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 12 #include "src/lithium-inl.h"
11 #include "src/x87/lithium-codegen-x87.h" 13 #include "src/x87/lithium-codegen-x87.h"
12 14
13 namespace v8 { 15 namespace v8 {
14 namespace internal { 16 namespace internal {
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 DCHECK(kind == GENERAL_REGISTERS); 373 DCHECK(kind == GENERAL_REGISTERS);
372 return LStackSlot::Create(index, zone()); 374 return LStackSlot::Create(index, zone());
373 } 375 }
374 } 376 }
375 377
376 378
377 void LStoreNamedField::PrintDataTo(StringStream* stream) { 379 void LStoreNamedField::PrintDataTo(StringStream* stream) {
378 object()->PrintTo(stream); 380 object()->PrintTo(stream);
379 std::ostringstream os; 381 std::ostringstream os;
380 os << hydrogen()->access() << " <- "; 382 os << hydrogen()->access() << " <- ";
381 stream->Add(os.c_str()); 383 stream->Add(os.str().c_str());
382 value()->PrintTo(stream); 384 value()->PrintTo(stream);
383 } 385 }
384 386
385 387
386 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 388 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
387 object()->PrintTo(stream); 389 object()->PrintTo(stream);
388 stream->Add("."); 390 stream->Add(".");
389 stream->Add(String::cast(*name())->ToCString().get()); 391 stream->Add(String::cast(*name())->ToCString().get());
390 stream->Add(" <- "); 392 stream->Add(" <- ");
391 value()->PrintTo(stream); 393 value()->PrintTo(stream);
(...skipping 2315 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_X87 2718 #endif // V8_TARGET_ARCH_X87
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