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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 constructor()->PrintTo(stream); | 347 constructor()->PrintTo(stream); |
348 stream->Add(" #%d / ", arity()); | 348 stream->Add(" #%d / ", arity()); |
349 } | 349 } |
350 | 350 |
351 | 351 |
352 void LCallNewArray::PrintDataTo(StringStream* stream) { | 352 void LCallNewArray::PrintDataTo(StringStream* stream) { |
353 stream->Add("= "); | 353 stream->Add("= "); |
354 constructor()->PrintTo(stream); | 354 constructor()->PrintTo(stream); |
355 stream->Add(" #%d / ", arity()); | 355 stream->Add(" #%d / ", arity()); |
356 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); | 356 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); |
357 ElementsKind kind = static_cast<ElementsKind>( | 357 ElementsKind kind = hydrogen()->elements_kind(); |
358 Smi::cast(hydrogen()->property_cell()->value())->value()); | |
359 stream->Add(" (%s) ", ElementsKindToString(kind)); | 358 stream->Add(" (%s) ", ElementsKindToString(kind)); |
360 } | 359 } |
361 | 360 |
362 | 361 |
363 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 362 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
364 arguments()->PrintTo(stream); | 363 arguments()->PrintTo(stream); |
365 | 364 |
366 stream->Add(" length "); | 365 stream->Add(" length "); |
367 length()->PrintTo(stream); | 366 length()->PrintTo(stream); |
368 | 367 |
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2599 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2601 LOperand* object = UseRegister(instr->object()); | 2600 LOperand* object = UseRegister(instr->object()); |
2602 LOperand* index = UseTempRegister(instr->index()); | 2601 LOperand* index = UseTempRegister(instr->index()); |
2603 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2602 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2604 } | 2603 } |
2605 | 2604 |
2606 | 2605 |
2607 } } // namespace v8::internal | 2606 } } // namespace v8::internal |
2608 | 2607 |
2609 #endif // V8_TARGET_ARCH_X64 | 2608 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |