Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 10544196: Defer creating Handles for HConstants to the code generation phase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase & cosmetic changes. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 return index; 531 return index;
532 } 532 }
533 533
534 534
535 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) { 535 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) {
536 GetGapAt(index)->GetOrCreateParallelMove( 536 GetGapAt(index)->GetOrCreateParallelMove(
537 LGap::START, zone())->AddMove(from, to, zone()); 537 LGap::START, zone())->AddMove(from, to, zone());
538 } 538 }
539 539
540 540
541 Handle<Object> LChunk::LookupLiteral(LConstantOperand* operand) const { 541 HConstant* LChunk::LookupLiteral(LConstantOperand* operand) const {
542 return HConstant::cast(graph_->LookupValue(operand->index()))->handle(); 542 return HConstant::cast(graph_->LookupValue(operand->index()));
543 } 543 }
544 544
545 545
546 Representation LChunk::LookupLiteralRepresentation( 546 Representation LChunk::LookupLiteralRepresentation(
547 LConstantOperand* operand) const { 547 LConstantOperand* operand) const {
548 return graph_->LookupValue(operand->index())->representation(); 548 return graph_->LookupValue(operand->index())->representation();
549 } 549 }
550 550
551 551
552 LChunk* LChunkBuilder::Build() { 552 LChunk* LChunkBuilder::Build() {
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2493 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2494 LOperand* object = UseRegister(instr->object()); 2494 LOperand* object = UseRegister(instr->object());
2495 LOperand* index = UseTempRegister(instr->index()); 2495 LOperand* index = UseTempRegister(instr->index());
2496 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2496 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2497 } 2497 }
2498 2498
2499 2499
2500 } } // namespace v8::internal 2500 } } // namespace v8::internal
2501 2501
2502 #endif // V8_TARGET_ARCH_IA32 2502 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698