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 #include "lithium-allocator-inl.h" | 7 #include "lithium-allocator-inl.h" |
8 #include "arm/lithium-arm.h" | 8 #include "arm/lithium-arm.h" |
9 #include "arm/lithium-codegen-arm.h" | 9 #include "arm/lithium-codegen-arm.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 stream->Add(" <- "); | 330 stream->Add(" <- "); |
331 value()->PrintTo(stream); | 331 value()->PrintTo(stream); |
332 } | 332 } |
333 | 333 |
334 | 334 |
335 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 335 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
336 elements()->PrintTo(stream); | 336 elements()->PrintTo(stream); |
337 stream->Add("["); | 337 stream->Add("["); |
338 key()->PrintTo(stream); | 338 key()->PrintTo(stream); |
339 if (hydrogen()->IsDehoisted()) { | 339 if (hydrogen()->IsDehoisted()) { |
340 stream->Add(" + %d]", additional_index()); | 340 stream->Add(" + %d]", base_offset()); |
341 } else { | 341 } else { |
342 stream->Add("]"); | 342 stream->Add("]"); |
343 } | 343 } |
344 } | 344 } |
345 | 345 |
346 | 346 |
347 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 347 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
348 elements()->PrintTo(stream); | 348 elements()->PrintTo(stream); |
349 stream->Add("["); | 349 stream->Add("["); |
350 key()->PrintTo(stream); | 350 key()->PrintTo(stream); |
351 if (hydrogen()->IsDehoisted()) { | 351 if (hydrogen()->IsDehoisted()) { |
352 stream->Add(" + %d] <-", additional_index()); | 352 stream->Add(" + %d] <-", base_offset()); |
353 } else { | 353 } else { |
354 stream->Add("] <- "); | 354 stream->Add("] <- "); |
355 } | 355 } |
356 | 356 |
357 if (value() == NULL) { | 357 if (value() == NULL) { |
358 ASSERT(hydrogen()->IsConstantHoleStore() && | 358 ASSERT(hydrogen()->IsConstantHoleStore() && |
359 hydrogen()->value()->representation().IsDouble()); | 359 hydrogen()->value()->representation().IsDouble()); |
360 stream->Add("<the hole(nan)>"); | 360 stream->Add("<the hole(nan)>"); |
361 } else { | 361 } else { |
362 value()->PrintTo(stream); | 362 value()->PrintTo(stream); |
(...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 | 2564 |
2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2566 LOperand* object = UseRegister(instr->object()); | 2566 LOperand* object = UseRegister(instr->object()); |
2567 LOperand* index = UseTempRegister(instr->index()); | 2567 LOperand* index = UseTempRegister(instr->index()); |
2568 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2568 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2569 LInstruction* result = DefineSameAsFirst(load); | 2569 LInstruction* result = DefineSameAsFirst(load); |
2570 return AssignPointerMap(result); | 2570 return AssignPointerMap(result); |
2571 } | 2571 } |
2572 | 2572 |
2573 } } // namespace v8::internal | 2573 } } // namespace v8::internal |
OLD | NEW |