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 "mips/lithium-mips.h" | 8 #include "mips/lithium-mips.h" |
9 #include "mips/lithium-codegen-mips.h" | 9 #include "mips/lithium-codegen-mips.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 stream->Add(" <- "); | 335 stream->Add(" <- "); |
336 value()->PrintTo(stream); | 336 value()->PrintTo(stream); |
337 } | 337 } |
338 | 338 |
339 | 339 |
340 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 340 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
341 elements()->PrintTo(stream); | 341 elements()->PrintTo(stream); |
342 stream->Add("["); | 342 stream->Add("["); |
343 key()->PrintTo(stream); | 343 key()->PrintTo(stream); |
344 if (hydrogen()->IsDehoisted()) { | 344 if (hydrogen()->IsDehoisted()) { |
345 stream->Add(" + %d]", additional_index()); | 345 stream->Add(" + %d]", base_offset()); |
346 } else { | 346 } else { |
347 stream->Add("]"); | 347 stream->Add("]"); |
348 } | 348 } |
349 } | 349 } |
350 | 350 |
351 | 351 |
352 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 352 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
353 elements()->PrintTo(stream); | 353 elements()->PrintTo(stream); |
354 stream->Add("["); | 354 stream->Add("["); |
355 key()->PrintTo(stream); | 355 key()->PrintTo(stream); |
356 if (hydrogen()->IsDehoisted()) { | 356 if (hydrogen()->IsDehoisted()) { |
357 stream->Add(" + %d] <-", additional_index()); | 357 stream->Add(" + %d] <-", base_offset()); |
358 } else { | 358 } else { |
359 stream->Add("] <- "); | 359 stream->Add("] <- "); |
360 } | 360 } |
361 | 361 |
362 if (value() == NULL) { | 362 if (value() == NULL) { |
363 ASSERT(hydrogen()->IsConstantHoleStore() && | 363 ASSERT(hydrogen()->IsConstantHoleStore() && |
364 hydrogen()->value()->representation().IsDouble()); | 364 hydrogen()->value()->representation().IsDouble()); |
365 stream->Add("<the hole(nan)>"); | 365 stream->Add("<the hole(nan)>"); |
366 } else { | 366 } else { |
367 value()->PrintTo(stream); | 367 value()->PrintTo(stream); |
(...skipping 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2516 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2516 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2517 LOperand* object = UseRegister(instr->object()); | 2517 LOperand* object = UseRegister(instr->object()); |
2518 LOperand* index = UseTempRegister(instr->index()); | 2518 LOperand* index = UseTempRegister(instr->index()); |
2519 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2519 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2520 LInstruction* result = DefineSameAsFirst(load); | 2520 LInstruction* result = DefineSameAsFirst(load); |
2521 return AssignPointerMap(result); | 2521 return AssignPointerMap(result); |
2522 } | 2522 } |
2523 | 2523 |
2524 | 2524 |
2525 } } // namespace v8::internal | 2525 } } // namespace v8::internal |
OLD | NEW |