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_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 if (kind == DOUBLE_REGISTERS) { | 368 if (kind == DOUBLE_REGISTERS) { |
369 return LDoubleStackSlot::Create(index, zone()); | 369 return LDoubleStackSlot::Create(index, zone()); |
370 } else { | 370 } else { |
371 DCHECK(kind == GENERAL_REGISTERS); | 371 DCHECK(kind == GENERAL_REGISTERS); |
372 return LStackSlot::Create(index, zone()); | 372 return LStackSlot::Create(index, zone()); |
373 } | 373 } |
374 } | 374 } |
375 | 375 |
376 | 376 |
377 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { | 377 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { |
378 stream->Add(String::cast(*name())->ToCString().get()); | 378 stream->Add("depth:%d slot:%d", depth(), slot_index()); |
379 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
380 } | 379 } |
381 | 380 |
382 | 381 |
383 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 382 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
384 object()->PrintTo(stream); | 383 object()->PrintTo(stream); |
385 std::ostringstream os; | 384 std::ostringstream os; |
386 os << hydrogen()->access() << " <- "; | 385 os << hydrogen()->access() << " <- "; |
387 stream->Add(os.str().c_str()); | 386 stream->Add(os.str().c_str()); |
388 value()->PrintTo(stream); | 387 value()->PrintTo(stream); |
389 } | 388 } |
390 | 389 |
391 | 390 |
392 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 391 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
393 object()->PrintTo(stream); | 392 object()->PrintTo(stream); |
394 stream->Add("."); | 393 stream->Add("."); |
395 stream->Add(String::cast(*name())->ToCString().get()); | 394 stream->Add(String::cast(*name())->ToCString().get()); |
396 stream->Add(" <- "); | 395 stream->Add(" <- "); |
397 value()->PrintTo(stream); | 396 value()->PrintTo(stream); |
398 } | 397 } |
399 | 398 |
400 | 399 |
401 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { | 400 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { |
402 stream->Add(String::cast(*name())->ToCString().get()); | 401 stream->Add("depth:%d slot:%d <- ", depth(), slot_index()); |
403 stream->Add(" <- "); | |
404 value()->PrintTo(stream); | 402 value()->PrintTo(stream); |
405 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
406 } | 403 } |
407 | 404 |
408 | 405 |
409 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 406 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
410 elements()->PrintTo(stream); | 407 elements()->PrintTo(stream); |
411 stream->Add("["); | 408 stream->Add("["); |
412 key()->PrintTo(stream); | 409 key()->PrintTo(stream); |
413 if (hydrogen()->IsDehoisted()) { | 410 if (hydrogen()->IsDehoisted()) { |
414 stream->Add(" + %d]", base_offset()); | 411 stream->Add(" + %d]", base_offset()); |
415 } else { | 412 } else { |
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2769 LAllocateBlockContext* result = | 2766 LAllocateBlockContext* result = |
2770 new(zone()) LAllocateBlockContext(context, function); | 2767 new(zone()) LAllocateBlockContext(context, function); |
2771 return MarkAsCall(DefineFixed(result, rsi), instr); | 2768 return MarkAsCall(DefineFixed(result, rsi), instr); |
2772 } | 2769 } |
2773 | 2770 |
2774 | 2771 |
2775 } // namespace internal | 2772 } // namespace internal |
2776 } // namespace v8 | 2773 } // namespace v8 |
2777 | 2774 |
2778 #endif // V8_TARGET_ARCH_X64 | 2775 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |