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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm/simulator-arm.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 #include "src/arm/lithium-arm.h" 7 #include "src/arm/lithium-arm.h"
8 #include "src/arm/lithium-codegen-arm.h" 8 #include "src/arm/lithium-codegen-arm.h"
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 arguments()->PrintTo(stream); 310 arguments()->PrintTo(stream);
311 stream->Add(" length "); 311 stream->Add(" length ");
312 length()->PrintTo(stream); 312 length()->PrintTo(stream);
313 stream->Add(" index "); 313 stream->Add(" index ");
314 index()->PrintTo(stream); 314 index()->PrintTo(stream);
315 } 315 }
316 316
317 317
318 void LStoreNamedField::PrintDataTo(StringStream* stream) { 318 void LStoreNamedField::PrintDataTo(StringStream* stream) {
319 object()->PrintTo(stream); 319 object()->PrintTo(stream);
320 hydrogen()->access().PrintTo(stream); 320 OStringStream os;
321 stream->Add(" <- "); 321 os << hydrogen()->access() << " <- ";
322 stream->Add(os.c_str());
322 value()->PrintTo(stream); 323 value()->PrintTo(stream);
323 } 324 }
324 325
325 326
326 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 327 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
327 object()->PrintTo(stream); 328 object()->PrintTo(stream);
328 stream->Add("."); 329 stream->Add(".");
329 stream->Add(String::cast(*name())->ToCString().get()); 330 stream->Add(String::cast(*name())->ToCString().get());
330 stream->Add(" <- "); 331 stream->Add(" <- ");
331 value()->PrintTo(stream); 332 value()->PrintTo(stream);
(...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2589 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2589 HAllocateBlockContext* instr) { 2590 HAllocateBlockContext* instr) {
2590 LOperand* context = UseFixed(instr->context(), cp); 2591 LOperand* context = UseFixed(instr->context(), cp);
2591 LOperand* function = UseRegisterAtStart(instr->function()); 2592 LOperand* function = UseRegisterAtStart(instr->function());
2592 LAllocateBlockContext* result = 2593 LAllocateBlockContext* result =
2593 new(zone()) LAllocateBlockContext(context, function); 2594 new(zone()) LAllocateBlockContext(context, function);
2594 return MarkAsCall(DefineFixed(result, cp), instr); 2595 return MarkAsCall(DefineFixed(result, cp), instr);
2595 } 2596 }
2596 2597
2597 } } // namespace v8::internal 2598 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698