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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm64/lithium-arm64.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 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
9 #include "src/lithium-inl.h" 11 #include "src/lithium-inl.h"
10 12
11 namespace v8 { 13 namespace v8 {
12 namespace internal { 14 namespace internal {
13 15
14 #define DEFINE_COMPILE(type) \ 16 #define DEFINE_COMPILE(type) \
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 arguments()->PrintTo(stream); 311 arguments()->PrintTo(stream);
310 stream->Add(" length "); 312 stream->Add(" length ");
311 length()->PrintTo(stream); 313 length()->PrintTo(stream);
312 stream->Add(" index "); 314 stream->Add(" index ");
313 index()->PrintTo(stream); 315 index()->PrintTo(stream);
314 } 316 }
315 317
316 318
317 void LStoreNamedField::PrintDataTo(StringStream* stream) { 319 void LStoreNamedField::PrintDataTo(StringStream* stream) {
318 object()->PrintTo(stream); 320 object()->PrintTo(stream);
319 OStringStream os; 321 std::ostringstream os;
320 os << hydrogen()->access() << " <- "; 322 os << hydrogen()->access() << " <- ";
321 stream->Add(os.c_str()); 323 stream->Add(os.str().c_str());
322 value()->PrintTo(stream); 324 value()->PrintTo(stream);
323 } 325 }
324 326
325 327
326 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 328 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
327 object()->PrintTo(stream); 329 object()->PrintTo(stream);
328 stream->Add("."); 330 stream->Add(".");
329 stream->Add(String::cast(*name())->ToCString().get()); 331 stream->Add(String::cast(*name())->ToCString().get());
330 stream->Add(" <- "); 332 stream->Add(" <- ");
331 value()->PrintTo(stream); 333 value()->PrintTo(stream);
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2633 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2635 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2634 HAllocateBlockContext* instr) { 2636 HAllocateBlockContext* instr) {
2635 LOperand* context = UseFixed(instr->context(), cp); 2637 LOperand* context = UseFixed(instr->context(), cp);
2636 LOperand* function = UseRegisterAtStart(instr->function()); 2638 LOperand* function = UseRegisterAtStart(instr->function());
2637 LAllocateBlockContext* result = 2639 LAllocateBlockContext* result =
2638 new(zone()) LAllocateBlockContext(context, function); 2640 new(zone()) LAllocateBlockContext(context, function);
2639 return MarkAsCall(DefineFixed(result, cp), instr); 2641 return MarkAsCall(DefineFixed(result, cp), instr);
2640 } 2642 }
2641 2643
2642 } } // namespace v8::internal 2644 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698