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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. Created 6 years, 7 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/isolate.cc ('k') | src/mips/assembler-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 #include "lithium-allocator-inl.h" 6 #include "lithium-allocator-inl.h"
7 7
8 #include "hydrogen.h" 8 #include "hydrogen.h"
9 #include "string-stream.h" 9 #include "string-stream.h"
10 10
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 if (output == NULL || !output->IsRegister() || 956 if (output == NULL || !output->IsRegister() ||
957 output->index() != i) { 957 output->index() != i) {
958 LiveRange* range = FixedLiveRangeFor(i); 958 LiveRange* range = FixedLiveRangeFor(i);
959 range->AddUseInterval(curr_position, 959 range->AddUseInterval(curr_position,
960 curr_position.InstructionEnd(), 960 curr_position.InstructionEnd(),
961 zone()); 961 zone());
962 } 962 }
963 } 963 }
964 } 964 }
965 965
966 if (instr->ClobbersDoubleRegisters()) { 966 if (instr->ClobbersDoubleRegisters(isolate())) {
967 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { 967 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) {
968 if (output == NULL || !output->IsDoubleRegister() || 968 if (output == NULL || !output->IsDoubleRegister() ||
969 output->index() != i) { 969 output->index() != i) {
970 LiveRange* range = FixedDoubleLiveRangeFor(i); 970 LiveRange* range = FixedDoubleLiveRangeFor(i);
971 range->AddUseInterval(curr_position, 971 range->AddUseInterval(curr_position,
972 curr_position.InstructionEnd(), 972 curr_position.InstructionEnd(),
973 zone()); 973 zone());
974 } 974 }
975 } 975 }
976 } 976 }
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); 2189 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_);
2190 } 2190 }
2191 2191
2192 #ifdef DEBUG 2192 #ifdef DEBUG
2193 if (allocator_ != NULL) allocator_->Verify(); 2193 if (allocator_ != NULL) allocator_->Verify();
2194 #endif 2194 #endif
2195 } 2195 }
2196 2196
2197 2197
2198 } } // namespace v8::internal 2198 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698