| 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> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 331 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
| 332 arguments()->PrintTo(stream); | 332 arguments()->PrintTo(stream); |
| 333 stream->Add(" length "); | 333 stream->Add(" length "); |
| 334 length()->PrintTo(stream); | 334 length()->PrintTo(stream); |
| 335 stream->Add(" index "); | 335 stream->Add(" index "); |
| 336 index()->PrintTo(stream); | 336 index()->PrintTo(stream); |
| 337 } | 337 } |
| 338 | 338 |
| 339 | 339 |
| 340 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { | 340 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { |
| 341 stream->Add(String::cast(*name())->ToCString().get()); | 341 stream->Add("depth:%d slot:%d", depth(), slot_index()); |
| 342 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
| 343 } | 342 } |
| 344 | 343 |
| 345 | 344 |
| 346 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 345 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
| 347 object()->PrintTo(stream); | 346 object()->PrintTo(stream); |
| 348 std::ostringstream os; | 347 std::ostringstream os; |
| 349 os << hydrogen()->access() << " <- "; | 348 os << hydrogen()->access() << " <- "; |
| 350 stream->Add(os.str().c_str()); | 349 stream->Add(os.str().c_str()); |
| 351 value()->PrintTo(stream); | 350 value()->PrintTo(stream); |
| 352 } | 351 } |
| 353 | 352 |
| 354 | 353 |
| 355 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 354 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 356 object()->PrintTo(stream); | 355 object()->PrintTo(stream); |
| 357 stream->Add("."); | 356 stream->Add("."); |
| 358 stream->Add(String::cast(*name())->ToCString().get()); | 357 stream->Add(String::cast(*name())->ToCString().get()); |
| 359 stream->Add(" <- "); | 358 stream->Add(" <- "); |
| 360 value()->PrintTo(stream); | 359 value()->PrintTo(stream); |
| 361 } | 360 } |
| 362 | 361 |
| 363 | 362 |
| 364 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { | 363 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { |
| 365 stream->Add(String::cast(*name())->ToCString().get()); | 364 stream->Add("depth:%d slot:%d <- ", depth(), slot_index()); |
| 366 stream->Add(" <- "); | |
| 367 value()->PrintTo(stream); | 365 value()->PrintTo(stream); |
| 368 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
| 369 } | 366 } |
| 370 | 367 |
| 371 | 368 |
| 372 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 369 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
| 373 elements()->PrintTo(stream); | 370 elements()->PrintTo(stream); |
| 374 stream->Add("["); | 371 stream->Add("["); |
| 375 key()->PrintTo(stream); | 372 key()->PrintTo(stream); |
| 376 if (hydrogen()->IsDehoisted()) { | 373 if (hydrogen()->IsDehoisted()) { |
| 377 stream->Add(" + %d]", base_offset()); | 374 stream->Add(" + %d]", base_offset()); |
| 378 } else { | 375 } else { |
| (...skipping 2293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 LOperand* function = UseRegisterAtStart(instr->function()); | 2669 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2673 LAllocateBlockContext* result = | 2670 LAllocateBlockContext* result = |
| 2674 new(zone()) LAllocateBlockContext(context, function); | 2671 new(zone()) LAllocateBlockContext(context, function); |
| 2675 return MarkAsCall(DefineFixed(result, cp), instr); | 2672 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2676 } | 2673 } |
| 2677 | 2674 |
| 2678 } // namespace internal | 2675 } // namespace internal |
| 2679 } // namespace v8 | 2676 } // namespace v8 |
| 2680 | 2677 |
| 2681 #endif // V8_TARGET_ARCH_MIPS | 2678 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |