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

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

Issue 22857004: Merged r16128, r16135, r16136 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 block->UpdateEnvironment(last_environment); 806 block->UpdateEnvironment(last_environment);
807 ASSERT(pred->argument_count() >= 0); 807 ASSERT(pred->argument_count() >= 0);
808 argument_count_ = pred->argument_count(); 808 argument_count_ = pred->argument_count();
809 } else { 809 } else {
810 // We are at a state join => process phis. 810 // We are at a state join => process phis.
811 HBasicBlock* pred = block->predecessors()->at(0); 811 HBasicBlock* pred = block->predecessors()->at(0);
812 // No need to copy the environment, it cannot be used later. 812 // No need to copy the environment, it cannot be used later.
813 HEnvironment* last_environment = pred->last_environment(); 813 HEnvironment* last_environment = pred->last_environment();
814 for (int i = 0; i < block->phis()->length(); ++i) { 814 for (int i = 0; i < block->phis()->length(); ++i) {
815 HPhi* phi = block->phis()->at(i); 815 HPhi* phi = block->phis()->at(i);
816 if (phi->merged_index() < last_environment->length()) { 816 if (phi->HasMergedIndex()) {
817 last_environment->SetValueAt(phi->merged_index(), phi); 817 last_environment->SetValueAt(phi->merged_index(), phi);
818 } 818 }
819 } 819 }
820 for (int i = 0; i < block->deleted_phis()->length(); ++i) { 820 for (int i = 0; i < block->deleted_phis()->length(); ++i) {
821 if (block->deleted_phis()->at(i) < last_environment->length()) { 821 if (block->deleted_phis()->at(i) < last_environment->length()) {
822 last_environment->SetValueAt(block->deleted_phis()->at(i), 822 last_environment->SetValueAt(block->deleted_phis()->at(i),
823 graph_->GetConstantUndefined()); 823 graph_->GetConstantUndefined());
824 } 824 }
825 } 825 }
826 block->UpdateEnvironment(last_environment); 826 block->UpdateEnvironment(last_environment);
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 2608
2609 2609
2610 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2610 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2611 LOperand* object = UseRegister(instr->object()); 2611 LOperand* object = UseRegister(instr->object());
2612 LOperand* index = UseRegister(instr->index()); 2612 LOperand* index = UseRegister(instr->index());
2613 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2613 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2614 } 2614 }
2615 2615
2616 2616
2617 } } // namespace v8::internal 2617 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698