| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
| 10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 337 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
| 338 arguments()->PrintTo(stream); | 338 arguments()->PrintTo(stream); |
| 339 stream->Add(" length "); | 339 stream->Add(" length "); |
| 340 length()->PrintTo(stream); | 340 length()->PrintTo(stream); |
| 341 stream->Add(" index "); | 341 stream->Add(" index "); |
| 342 index()->PrintTo(stream); | 342 index()->PrintTo(stream); |
| 343 } | 343 } |
| 344 | 344 |
| 345 | 345 |
| 346 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { | 346 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { |
| 347 stream->Add(String::cast(*name())->ToCString().get()); | 347 stream->Add("depth:%d slot:%d", depth(), slot_index()); |
| 348 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
| 349 } | 348 } |
| 350 | 349 |
| 351 | 350 |
| 352 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 351 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
| 353 object()->PrintTo(stream); | 352 object()->PrintTo(stream); |
| 354 std::ostringstream os; | 353 std::ostringstream os; |
| 355 os << hydrogen()->access() << " <- "; | 354 os << hydrogen()->access() << " <- "; |
| 356 stream->Add(os.str().c_str()); | 355 stream->Add(os.str().c_str()); |
| 357 value()->PrintTo(stream); | 356 value()->PrintTo(stream); |
| 358 } | 357 } |
| 359 | 358 |
| 360 | 359 |
| 361 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 360 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 362 object()->PrintTo(stream); | 361 object()->PrintTo(stream); |
| 363 stream->Add("."); | 362 stream->Add("."); |
| 364 stream->Add(String::cast(*name())->ToCString().get()); | 363 stream->Add(String::cast(*name())->ToCString().get()); |
| 365 stream->Add(" <- "); | 364 stream->Add(" <- "); |
| 366 value()->PrintTo(stream); | 365 value()->PrintTo(stream); |
| 367 } | 366 } |
| 368 | 367 |
| 369 | 368 |
| 370 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { | 369 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { |
| 371 stream->Add(String::cast(*name())->ToCString().get()); | 370 stream->Add("depth:%d slot:%d <- ", depth(), slot_index()); |
| 372 stream->Add(" <- "); | |
| 373 value()->PrintTo(stream); | 371 value()->PrintTo(stream); |
| 374 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
| 375 } | 372 } |
| 376 | 373 |
| 377 | 374 |
| 378 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 375 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
| 379 elements()->PrintTo(stream); | 376 elements()->PrintTo(stream); |
| 380 stream->Add("["); | 377 stream->Add("["); |
| 381 key()->PrintTo(stream); | 378 key()->PrintTo(stream); |
| 382 if (hydrogen()->IsDehoisted()) { | 379 if (hydrogen()->IsDehoisted()) { |
| 383 stream->Add(" + %d]", base_offset()); | 380 stream->Add(" + %d]", base_offset()); |
| 384 } else { | 381 } else { |
| (...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2669 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2666 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2670 HAllocateBlockContext* instr) { | 2667 HAllocateBlockContext* instr) { |
| 2671 LOperand* context = UseFixed(instr->context(), cp); | 2668 LOperand* context = UseFixed(instr->context(), cp); |
| 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 } // namespace internal | 2674 } // namespace internal |
| 2678 } // namespace v8 | 2675 } // namespace v8 |
| OLD | NEW |