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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
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/mips/lithium-codegen-mips.h" | 13 #include "src/mips/lithium-codegen-mips.h" |
12 | 14 |
13 namespace v8 { | 15 namespace v8 { |
14 namespace internal { | 16 namespace internal { |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 length()->PrintTo(stream); | 320 length()->PrintTo(stream); |
319 stream->Add(" index "); | 321 stream->Add(" index "); |
320 index()->PrintTo(stream); | 322 index()->PrintTo(stream); |
321 } | 323 } |
322 | 324 |
323 | 325 |
324 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 326 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
325 object()->PrintTo(stream); | 327 object()->PrintTo(stream); |
326 std::ostringstream os; | 328 std::ostringstream os; |
327 os << hydrogen()->access() << " <- "; | 329 os << hydrogen()->access() << " <- "; |
328 stream->Add(os.c_str()); | 330 stream->Add(os.str().c_str()); |
329 value()->PrintTo(stream); | 331 value()->PrintTo(stream); |
330 } | 332 } |
331 | 333 |
332 | 334 |
333 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 335 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
334 object()->PrintTo(stream); | 336 object()->PrintTo(stream); |
335 stream->Add("."); | 337 stream->Add("."); |
336 stream->Add(String::cast(*name())->ToCString().get()); | 338 stream->Add(String::cast(*name())->ToCString().get()); |
337 stream->Add(" <- "); | 339 stream->Add(" <- "); |
338 value()->PrintTo(stream); | 340 value()->PrintTo(stream); |
(...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 LOperand* context = UseFixed(instr->context(), cp); | 2587 LOperand* context = UseFixed(instr->context(), cp); |
2586 LOperand* function = UseRegisterAtStart(instr->function()); | 2588 LOperand* function = UseRegisterAtStart(instr->function()); |
2587 LAllocateBlockContext* result = | 2589 LAllocateBlockContext* result = |
2588 new(zone()) LAllocateBlockContext(context, function); | 2590 new(zone()) LAllocateBlockContext(context, function); |
2589 return MarkAsCall(DefineFixed(result, cp), instr); | 2591 return MarkAsCall(DefineFixed(result, cp), instr); |
2590 } | 2592 } |
2591 | 2593 |
2592 } } // namespace v8::internal | 2594 } } // namespace v8::internal |
2593 | 2595 |
2594 #endif // V8_TARGET_ARCH_MIPS | 2596 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |