OLD | NEW |
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_X64 | 9 #if V8_TARGET_ARCH_X64 |
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/x64/lithium-codegen-x64.h" | 13 #include "src/x64/lithium-codegen-x64.h" |
12 | 14 |
13 namespace v8 { | 15 namespace v8 { |
14 namespace internal { | 16 namespace internal { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 return LDoubleStackSlot::Create(index, zone()); | 355 return LDoubleStackSlot::Create(index, zone()); |
354 } else { | 356 } else { |
355 DCHECK(kind == GENERAL_REGISTERS); | 357 DCHECK(kind == GENERAL_REGISTERS); |
356 return LStackSlot::Create(index, zone()); | 358 return LStackSlot::Create(index, zone()); |
357 } | 359 } |
358 } | 360 } |
359 | 361 |
360 | 362 |
361 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 363 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
362 object()->PrintTo(stream); | 364 object()->PrintTo(stream); |
363 OStringStream os; | 365 std::ostringstream os; |
364 os << hydrogen()->access() << " <- "; | 366 os << hydrogen()->access() << " <- "; |
365 stream->Add(os.c_str()); | 367 stream->Add(os.str().c_str()); |
366 value()->PrintTo(stream); | 368 value()->PrintTo(stream); |
367 } | 369 } |
368 | 370 |
369 | 371 |
370 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 372 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
371 object()->PrintTo(stream); | 373 object()->PrintTo(stream); |
372 stream->Add("."); | 374 stream->Add("."); |
373 stream->Add(String::cast(*name())->ToCString().get()); | 375 stream->Add(String::cast(*name())->ToCString().get()); |
374 stream->Add(" <- "); | 376 stream->Add(" <- "); |
375 value()->PrintTo(stream); | 377 value()->PrintTo(stream); |
(...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2684 LOperand* function = UseRegisterAtStart(instr->function()); | 2686 LOperand* function = UseRegisterAtStart(instr->function()); |
2685 LAllocateBlockContext* result = | 2687 LAllocateBlockContext* result = |
2686 new(zone()) LAllocateBlockContext(context, function); | 2688 new(zone()) LAllocateBlockContext(context, function); |
2687 return MarkAsCall(DefineFixed(result, rsi), instr); | 2689 return MarkAsCall(DefineFixed(result, rsi), instr); |
2688 } | 2690 } |
2689 | 2691 |
2690 | 2692 |
2691 } } // namespace v8::internal | 2693 } } // namespace v8::internal |
2692 | 2694 |
2693 #endif // V8_TARGET_ARCH_X64 | 2695 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |