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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
10 #include "ia32/lithium-ia32.h" | 10 #include "ia32/lithium-ia32.h" |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 stream->Add(" <- "); | 379 stream->Add(" <- "); |
380 value()->PrintTo(stream); | 380 value()->PrintTo(stream); |
381 } | 381 } |
382 | 382 |
383 | 383 |
384 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 384 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
385 elements()->PrintTo(stream); | 385 elements()->PrintTo(stream); |
386 stream->Add("["); | 386 stream->Add("["); |
387 key()->PrintTo(stream); | 387 key()->PrintTo(stream); |
388 if (hydrogen()->IsDehoisted()) { | 388 if (hydrogen()->IsDehoisted()) { |
389 stream->Add(" + %d]", additional_index()); | 389 stream->Add(" + %d]", base_offset()); |
390 } else { | 390 } else { |
391 stream->Add("]"); | 391 stream->Add("]"); |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
395 | 395 |
396 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 396 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
397 elements()->PrintTo(stream); | 397 elements()->PrintTo(stream); |
398 stream->Add("["); | 398 stream->Add("["); |
399 key()->PrintTo(stream); | 399 key()->PrintTo(stream); |
400 if (hydrogen()->IsDehoisted()) { | 400 if (hydrogen()->IsDehoisted()) { |
401 stream->Add(" + %d] <-", additional_index()); | 401 stream->Add(" + %d] <-", base_offset()); |
402 } else { | 402 } else { |
403 stream->Add("] <- "); | 403 stream->Add("] <- "); |
404 } | 404 } |
405 | 405 |
406 if (value() == NULL) { | 406 if (value() == NULL) { |
407 ASSERT(hydrogen()->IsConstantHoleStore() && | 407 ASSERT(hydrogen()->IsConstantHoleStore() && |
408 hydrogen()->value()->representation().IsDouble()); | 408 hydrogen()->value()->representation().IsDouble()); |
409 stream->Add("<the hole(nan)>"); | 409 stream->Add("<the hole(nan)>"); |
410 } else { | 410 } else { |
411 value()->PrintTo(stream); | 411 value()->PrintTo(stream); |
(...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2667 LOperand* index = UseTempRegister(instr->index()); | 2667 LOperand* index = UseTempRegister(instr->index()); |
2668 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2668 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2669 LInstruction* result = DefineSameAsFirst(load); | 2669 LInstruction* result = DefineSameAsFirst(load); |
2670 return AssignPointerMap(result); | 2670 return AssignPointerMap(result); |
2671 } | 2671 } |
2672 | 2672 |
2673 | 2673 |
2674 } } // namespace v8::internal | 2674 } } // namespace v8::internal |
2675 | 2675 |
2676 #endif // V8_TARGET_ARCH_IA32 | 2676 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |