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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 return index; | 520 return index; |
521 } | 521 } |
522 | 522 |
523 | 523 |
524 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) { | 524 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) { |
525 GetGapAt(index)->GetOrCreateParallelMove( | 525 GetGapAt(index)->GetOrCreateParallelMove( |
526 LGap::START, zone())->AddMove(from, to, zone()); | 526 LGap::START, zone())->AddMove(from, to, zone()); |
527 } | 527 } |
528 | 528 |
529 | 529 |
530 Handle<Object> LChunk::LookupLiteral(LConstantOperand* operand) const { | 530 HConstant* LChunk::LookupLiteral(LConstantOperand* operand) const { |
531 return HConstant::cast(graph_->LookupValue(operand->index()))->handle(); | 531 return HConstant::cast(graph_->LookupValue(operand->index())); |
532 } | 532 } |
533 | 533 |
534 | 534 |
535 Representation LChunk::LookupLiteralRepresentation( | 535 Representation LChunk::LookupLiteralRepresentation( |
536 LConstantOperand* operand) const { | 536 LConstantOperand* operand) const { |
537 return graph_->LookupValue(operand->index())->representation(); | 537 return graph_->LookupValue(operand->index())->representation(); |
538 } | 538 } |
539 | 539 |
540 | 540 |
541 LChunk* LChunkBuilder::Build() { | 541 LChunk* LChunkBuilder::Build() { |
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2369 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2370 LOperand* object = UseRegister(instr->object()); | 2370 LOperand* object = UseRegister(instr->object()); |
2371 LOperand* index = UseTempRegister(instr->index()); | 2371 LOperand* index = UseTempRegister(instr->index()); |
2372 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2372 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2373 } | 2373 } |
2374 | 2374 |
2375 | 2375 |
2376 } } // namespace v8::internal | 2376 } } // namespace v8::internal |
2377 | 2377 |
2378 #endif // V8_TARGET_ARCH_X64 | 2378 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |