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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 constructor()->PrintTo(stream); | 323 constructor()->PrintTo(stream); |
324 stream->Add(" #%d / ", arity()); | 324 stream->Add(" #%d / ", arity()); |
325 } | 325 } |
326 | 326 |
327 | 327 |
328 void LCallNewArray::PrintDataTo(StringStream* stream) { | 328 void LCallNewArray::PrintDataTo(StringStream* stream) { |
329 stream->Add("= "); | 329 stream->Add("= "); |
330 constructor()->PrintTo(stream); | 330 constructor()->PrintTo(stream); |
331 stream->Add(" #%d / ", arity()); | 331 stream->Add(" #%d / ", arity()); |
332 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); | 332 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); |
333 ElementsKind kind = static_cast<ElementsKind>( | 333 ElementsKind kind = hydrogen()->elements_kind(); |
334 Smi::cast(hydrogen()->property_cell()->value())->value()); | |
335 stream->Add(" (%s) ", ElementsKindToString(kind)); | 334 stream->Add(" (%s) ", ElementsKindToString(kind)); |
336 } | 335 } |
337 | 336 |
338 | 337 |
339 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 338 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
340 arguments()->PrintTo(stream); | 339 arguments()->PrintTo(stream); |
341 stream->Add(" length "); | 340 stream->Add(" length "); |
342 length()->PrintTo(stream); | 341 length()->PrintTo(stream); |
343 stream->Add(" index "); | 342 stream->Add(" index "); |
344 index()->PrintTo(stream); | 343 index()->PrintTo(stream); |
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2558 | 2557 |
2559 | 2558 |
2560 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2559 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2561 LOperand* object = UseRegister(instr->object()); | 2560 LOperand* object = UseRegister(instr->object()); |
2562 LOperand* index = UseRegister(instr->index()); | 2561 LOperand* index = UseRegister(instr->index()); |
2563 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2562 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2564 } | 2563 } |
2565 | 2564 |
2566 | 2565 |
2567 } } // namespace v8::internal | 2566 } } // namespace v8::internal |
OLD | NEW |