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

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: 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
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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 if (output == NULL || !output->IsRegister() || 979 if (output == NULL || !output->IsRegister() ||
980 output->index() != i) { 980 output->index() != i) {
981 LiveRange* range = FixedLiveRangeFor(i); 981 LiveRange* range = FixedLiveRangeFor(i);
982 range->AddUseInterval(curr_position, 982 range->AddUseInterval(curr_position,
983 curr_position.InstructionEnd(), 983 curr_position.InstructionEnd(),
984 zone()); 984 zone());
985 } 985 }
986 } 986 }
987 } 987 }
988 988
989 if (instr->ClobbersDoubleRegisters()) { 989 if (instr->ClobbersDoubleRegisters(isolate())) {
990 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { 990 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) {
991 if (output == NULL || !output->IsDoubleRegister() || 991 if (output == NULL || !output->IsDoubleRegister() ||
992 output->index() != i) { 992 output->index() != i) {
993 LiveRange* range = FixedDoubleLiveRangeFor(i); 993 LiveRange* range = FixedDoubleLiveRangeFor(i);
994 range->AddUseInterval(curr_position, 994 range->AddUseInterval(curr_position,
995 curr_position.InstructionEnd(), 995 curr_position.InstructionEnd(),
996 zone()); 996 zone());
997 } 997 }
998 } 998 }
999 } 999 }
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2212 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); 2212 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_);
2213 } 2213 }
2214 2214
2215 #ifdef DEBUG 2215 #ifdef DEBUG
2216 if (allocator_ != NULL) allocator_->Verify(); 2216 if (allocator_ != NULL) allocator_->Verify();
2217 #endif 2217 #endif
2218 } 2218 }
2219 2219
2220 2220
2221 } } // namespace v8::internal 2221 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips/assembler-mips.h » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698