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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 return index; | 527 return index; |
528 } | 528 } |
529 | 529 |
530 | 530 |
531 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) { | 531 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) { |
532 GetGapAt(index)->GetOrCreateParallelMove( | 532 GetGapAt(index)->GetOrCreateParallelMove( |
533 LGap::START, zone())->AddMove(from, to, zone()); | 533 LGap::START, zone())->AddMove(from, to, zone()); |
534 } | 534 } |
535 | 535 |
536 | 536 |
537 Handle<Object> LChunk::LookupLiteral(LConstantOperand* operand) const { | 537 HConstant* LChunk::LookupConstant(LConstantOperand* operand) const { |
538 return HConstant::cast(graph_->LookupValue(operand->index()))->handle(); | 538 return HConstant::cast(graph_->LookupValue(operand->index())); |
539 } | 539 } |
540 | 540 |
541 | 541 |
542 Representation LChunk::LookupLiteralRepresentation( | 542 Representation LChunk::LookupLiteralRepresentation( |
543 LConstantOperand* operand) const { | 543 LConstantOperand* operand) const { |
544 return graph_->LookupValue(operand->index())->representation(); | 544 return graph_->LookupValue(operand->index())->representation(); |
545 } | 545 } |
546 | 546 |
547 | 547 |
548 LChunk* LChunkBuilder::Build() { | 548 LChunk* LChunkBuilder::Build() { |
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 | 2394 |
2395 | 2395 |
2396 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2396 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2397 LOperand* object = UseRegister(instr->object()); | 2397 LOperand* object = UseRegister(instr->object()); |
2398 LOperand* index = UseRegister(instr->index()); | 2398 LOperand* index = UseRegister(instr->index()); |
2399 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2399 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2400 } | 2400 } |
2401 | 2401 |
2402 | 2402 |
2403 } } // namespace v8::internal | 2403 } } // namespace v8::internal |
OLD | NEW |