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

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

Issue 10035021: Reduce size of LIR instruction by one word and remove dead code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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 | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 if (output == NULL || !output->IsRegister() || 951 if (output == NULL || !output->IsRegister() ||
952 output->index() != i) { 952 output->index() != i) {
953 LiveRange* range = FixedLiveRangeFor(i); 953 LiveRange* range = FixedLiveRangeFor(i);
954 range->AddUseInterval(curr_position, 954 range->AddUseInterval(curr_position,
955 curr_position.InstructionEnd(), 955 curr_position.InstructionEnd(),
956 zone_); 956 zone_);
957 } 957 }
958 } 958 }
959 } 959 }
960 960
961 if (instr->IsMarkedAsCall() || instr->IsMarkedAsSaveDoubles()) { 961 if (instr->IsMarkedAsCall()) {
962 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) { 962 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) {
963 if (output == NULL || !output->IsDoubleRegister() || 963 if (output == NULL || !output->IsDoubleRegister() ||
964 output->index() != i) { 964 output->index() != i) {
965 LiveRange* range = FixedDoubleLiveRangeFor(i); 965 LiveRange* range = FixedDoubleLiveRangeFor(i);
966 range->AddUseInterval(curr_position, 966 range->AddUseInterval(curr_position,
967 curr_position.InstructionEnd(), 967 curr_position.InstructionEnd(),
968 zone_); 968 zone_);
969 } 969 }
970 } 970 }
971 } 971 }
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 LiveRange* current = live_ranges()->at(i); 2109 LiveRange* current = live_ranges()->at(i);
2110 if (current != NULL) current->Verify(); 2110 if (current != NULL) current->Verify();
2111 } 2111 }
2112 } 2112 }
2113 2113
2114 2114
2115 #endif 2115 #endif
2116 2116
2117 2117
2118 } } // namespace v8::internal 2118 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698