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

Side by Side Diff: src/ia32/lithium-ia32.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/hydrogen-types.cc ('k') | src/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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ia32/lithium-codegen-ia32.h" 10 #include "src/ia32/lithium-codegen-ia32.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 return LDoubleStackSlot::Create(index, zone()); 359 return LDoubleStackSlot::Create(index, zone());
360 } else { 360 } else {
361 ASSERT(kind == GENERAL_REGISTERS); 361 ASSERT(kind == GENERAL_REGISTERS);
362 return LStackSlot::Create(index, zone()); 362 return LStackSlot::Create(index, zone());
363 } 363 }
364 } 364 }
365 365
366 366
367 void LStoreNamedField::PrintDataTo(StringStream* stream) { 367 void LStoreNamedField::PrintDataTo(StringStream* stream) {
368 object()->PrintTo(stream); 368 object()->PrintTo(stream);
369 hydrogen()->access().PrintTo(stream); 369 OStringStream os;
370 stream->Add(" <- "); 370 os << hydrogen()->access() << " <- ";
371 stream->Add(os.c_str());
371 value()->PrintTo(stream); 372 value()->PrintTo(stream);
372 } 373 }
373 374
374 375
375 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 376 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
376 object()->PrintTo(stream); 377 object()->PrintTo(stream);
377 stream->Add("."); 378 stream->Add(".");
378 stream->Add(String::cast(*name())->ToCString().get()); 379 stream->Add(String::cast(*name())->ToCString().get());
379 stream->Add(" <- "); 380 stream->Add(" <- ");
380 value()->PrintTo(stream); 381 value()->PrintTo(stream);
(...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 LOperand* function = UseRegisterAtStart(instr->function()); 2668 LOperand* function = UseRegisterAtStart(instr->function());
2668 LAllocateBlockContext* result = 2669 LAllocateBlockContext* result =
2669 new(zone()) LAllocateBlockContext(context, function); 2670 new(zone()) LAllocateBlockContext(context, function);
2670 return MarkAsCall(DefineFixed(result, esi), instr); 2671 return MarkAsCall(DefineFixed(result, esi), instr);
2671 } 2672 }
2672 2673
2673 2674
2674 } } // namespace v8::internal 2675 } } // namespace v8::internal
2675 2676
2676 #endif // V8_TARGET_ARCH_IA32 2677 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-types.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698