| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 367 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 368 object()->PrintTo(stream); | 368 object()->PrintTo(stream); |
| 369 stream->Add("."); | 369 stream->Add("."); |
| 370 stream->Add(*String::cast(*name())->ToCString()); | 370 stream->Add(*String::cast(*name())->ToCString()); |
| 371 stream->Add(" <- "); | 371 stream->Add(" <- "); |
| 372 value()->PrintTo(stream); | 372 value()->PrintTo(stream); |
| 373 } | 373 } |
| 374 | 374 |
| 375 | 375 |
| 376 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
| 377 elements()->PrintTo(stream); |
| 378 stream->Add("["); |
| 379 key()->PrintTo(stream); |
| 380 if (hydrogen()->IsDehoisted()) { |
| 381 stream->Add(" + %d]", additional_index()); |
| 382 } else { |
| 383 stream->Add("]"); |
| 384 } |
| 385 } |
| 386 |
| 387 |
| 376 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 388 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
| 377 elements()->PrintTo(stream); | 389 elements()->PrintTo(stream); |
| 378 stream->Add("["); | 390 stream->Add("["); |
| 379 key()->PrintTo(stream); | 391 key()->PrintTo(stream); |
| 380 stream->Add("] <- "); | 392 if (hydrogen()->IsDehoisted()) { |
| 393 stream->Add(" + %d] <-", additional_index()); |
| 394 } else { |
| 395 stream->Add("] <- "); |
| 396 } |
| 381 value()->PrintTo(stream); | 397 value()->PrintTo(stream); |
| 382 } | 398 } |
| 383 | 399 |
| 384 | |
| 385 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | |
| 386 object()->PrintTo(stream); | |
| 387 stream->Add("["); | |
| 388 key()->PrintTo(stream); | |
| 389 stream->Add("] <- "); | |
| 390 value()->PrintTo(stream); | |
| 391 } | |
| 392 | |
| 393 | 400 |
| 394 void LTransitionElementsKind::PrintDataTo(StringStream* stream) { | 401 void LTransitionElementsKind::PrintDataTo(StringStream* stream) { |
| 395 object()->PrintTo(stream); | 402 object()->PrintTo(stream); |
| 396 stream->Add(" %p -> %p", *original_map(), *transitioned_map()); | 403 stream->Add(" %p -> %p", *original_map(), *transitioned_map()); |
| 397 } | 404 } |
| 398 | 405 |
| 399 | 406 |
| 400 int LPlatformChunk::GetNextSpillIndex(bool is_double) { | 407 int LPlatformChunk::GetNextSpillIndex(bool is_double) { |
| 401 // Skip a slot if for a double-width slot. | 408 // Skip a slot if for a double-width slot. |
| 402 if (is_double) spill_slot_count_++; | 409 if (is_double) spill_slot_count_++; |
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2209 | 2216 |
| 2210 | 2217 |
| 2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2218 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2212 LOperand* object = UseRegister(instr->object()); | 2219 LOperand* object = UseRegister(instr->object()); |
| 2213 LOperand* index = UseRegister(instr->index()); | 2220 LOperand* index = UseRegister(instr->index()); |
| 2214 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2221 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2215 } | 2222 } |
| 2216 | 2223 |
| 2217 | 2224 |
| 2218 } } // namespace v8::internal | 2225 } } // namespace v8::internal |
| OLD | NEW |