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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.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 // 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 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "x64/lithium-x64.h" 10 #include "x64/lithium-x64.h"
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 // Make sure that the lithium instruction has either no fixed register 864 // Make sure that the lithium instruction has either no fixed register
865 // constraints in temps or the result OR no uses that are only used at 865 // constraints in temps or the result OR no uses that are only used at
866 // start. If this invariant doesn't hold, the register allocator can decide 866 // start. If this invariant doesn't hold, the register allocator can decide
867 // to insert a split of a range immediately before the instruction due to an 867 // to insert a split of a range immediately before the instruction due to an
868 // already allocated register needing to be used for the instruction's fixed 868 // already allocated register needing to be used for the instruction's fixed
869 // register constraint. In this case, The register allocator won't see an 869 // register constraint. In this case, The register allocator won't see an
870 // interference between the split child and the use-at-start (it would if 870 // interference between the split child and the use-at-start (it would if
871 // the it was just a plain use), so it is free to move the split child into 871 // the it was just a plain use), so it is free to move the split child into
872 // the same register that is used for the use-at-start. 872 // the same register that is used for the use-at-start.
873 // See https://code.google.com/p/chromium/issues/detail?id=201590 873 // See https://code.google.com/p/chromium/issues/detail?id=201590
874 if (!(instr->ClobbersRegisters() && instr->ClobbersDoubleRegisters())) { 874 if (!(instr->ClobbersRegisters() &&
875 instr->ClobbersDoubleRegisters(isolate()))) {
875 int fixed = 0; 876 int fixed = 0;
876 int used_at_start = 0; 877 int used_at_start = 0;
877 for (UseIterator it(instr); !it.Done(); it.Advance()) { 878 for (UseIterator it(instr); !it.Done(); it.Advance()) {
878 LUnallocated* operand = LUnallocated::cast(it.Current()); 879 LUnallocated* operand = LUnallocated::cast(it.Current());
879 if (operand->IsUsedAtStart()) ++used_at_start; 880 if (operand->IsUsedAtStart()) ++used_at_start;
880 } 881 }
881 if (instr->Output() != NULL) { 882 if (instr->Output() != NULL) {
882 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 883 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
883 } 884 }
884 for (TempIterator it(instr); !it.Done(); it.Advance()) { 885 for (TempIterator it(instr); !it.Done(); it.Advance()) {
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 LOperand* index = UseTempRegister(instr->index()); 2588 LOperand* index = UseTempRegister(instr->index());
2588 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2589 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2589 LInstruction* result = DefineSameAsFirst(load); 2590 LInstruction* result = DefineSameAsFirst(load);
2590 return AssignPointerMap(result); 2591 return AssignPointerMap(result);
2591 } 2592 }
2592 2593
2593 2594
2594 } } // namespace v8::internal 2595 } } // namespace v8::internal
2595 2596
2596 #endif // V8_TARGET_ARCH_X64 2597 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698