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

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

Issue 379493002: X87: More OStreamsUse OStreams more often (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | test/cctest/test-assembler-x87.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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-allocator-inl.h" 10 #include "src/lithium-allocator-inl.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 return LDoubleStackSlot::Create(index, zone()); 370 return LDoubleStackSlot::Create(index, zone());
371 } else { 371 } else {
372 ASSERT(kind == GENERAL_REGISTERS); 372 ASSERT(kind == GENERAL_REGISTERS);
373 return LStackSlot::Create(index, zone()); 373 return LStackSlot::Create(index, zone());
374 } 374 }
375 } 375 }
376 376
377 377
378 void LStoreNamedField::PrintDataTo(StringStream* stream) { 378 void LStoreNamedField::PrintDataTo(StringStream* stream) {
379 object()->PrintTo(stream); 379 object()->PrintTo(stream);
380 hydrogen()->access().PrintTo(stream); 380 OStringStream os;
381 stream->Add(" <- "); 381 os << hydrogen()->access() << " <- ";
382 stream->Add(os.c_str());
382 value()->PrintTo(stream); 383 value()->PrintTo(stream);
383 } 384 }
384 385
385 386
386 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 387 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
387 object()->PrintTo(stream); 388 object()->PrintTo(stream);
388 stream->Add("."); 389 stream->Add(".");
389 stream->Add(String::cast(*name())->ToCString().get()); 390 stream->Add(String::cast(*name())->ToCString().get());
390 stream->Add(" <- "); 391 stream->Add(" <- ");
391 value()->PrintTo(stream); 392 value()->PrintTo(stream);
(...skipping 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2652 LOperand* function = UseRegisterAtStart(instr->function()); 2653 LOperand* function = UseRegisterAtStart(instr->function());
2653 LAllocateBlockContext* result = 2654 LAllocateBlockContext* result =
2654 new(zone()) LAllocateBlockContext(context, function); 2655 new(zone()) LAllocateBlockContext(context, function);
2655 return MarkAsCall(DefineFixed(result, esi), instr); 2656 return MarkAsCall(DefineFixed(result, esi), instr);
2656 } 2657 }
2657 2658
2658 2659
2659 } } // namespace v8::internal 2660 } } // namespace v8::internal
2660 2661
2661 #endif // V8_TARGET_ARCH_X87 2662 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698