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

Side by Side Diff: src/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/arm/macro-assembler-arm.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 6
7 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "arm/lithium-arm.h" 8 #include "arm/lithium-arm.h"
9 #include "arm/lithium-codegen-arm.h" 9 #include "arm/lithium-codegen-arm.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 // Make sure that the lithium instruction has either no fixed register 843 // Make sure that the lithium instruction has either no fixed register
844 // constraints in temps or the result OR no uses that are only used at 844 // constraints in temps or the result OR no uses that are only used at
845 // start. If this invariant doesn't hold, the register allocator can decide 845 // start. If this invariant doesn't hold, the register allocator can decide
846 // to insert a split of a range immediately before the instruction due to an 846 // to insert a split of a range immediately before the instruction due to an
847 // already allocated register needing to be used for the instruction's fixed 847 // already allocated register needing to be used for the instruction's fixed
848 // register constraint. In this case, The register allocator won't see an 848 // register constraint. In this case, The register allocator won't see an
849 // interference between the split child and the use-at-start (it would if 849 // interference between the split child and the use-at-start (it would if
850 // the it was just a plain use), so it is free to move the split child into 850 // the it was just a plain use), so it is free to move the split child into
851 // the same register that is used for the use-at-start. 851 // the same register that is used for the use-at-start.
852 // See https://code.google.com/p/chromium/issues/detail?id=201590 852 // See https://code.google.com/p/chromium/issues/detail?id=201590
853 if (!(instr->ClobbersRegisters() && instr->ClobbersDoubleRegisters())) { 853 if (!(instr->ClobbersRegisters() &&
854 instr->ClobbersDoubleRegisters(isolate()))) {
854 int fixed = 0; 855 int fixed = 0;
855 int used_at_start = 0; 856 int used_at_start = 0;
856 for (UseIterator it(instr); !it.Done(); it.Advance()) { 857 for (UseIterator it(instr); !it.Done(); it.Advance()) {
857 LUnallocated* operand = LUnallocated::cast(it.Current()); 858 LUnallocated* operand = LUnallocated::cast(it.Current());
858 if (operand->IsUsedAtStart()) ++used_at_start; 859 if (operand->IsUsedAtStart()) ++used_at_start;
859 } 860 }
860 if (instr->Output() != NULL) { 861 if (instr->Output() != NULL) {
861 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 862 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
862 } 863 }
863 for (TempIterator it(instr); !it.Done(); it.Advance()) { 864 for (TempIterator it(instr); !it.Done(); it.Advance()) {
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 2559
2559 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2560 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2560 LOperand* object = UseRegister(instr->object()); 2561 LOperand* object = UseRegister(instr->object());
2561 LOperand* index = UseRegister(instr->index()); 2562 LOperand* index = UseRegister(instr->index());
2562 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2563 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2563 LInstruction* result = DefineSameAsFirst(load); 2564 LInstruction* result = DefineSameAsFirst(load);
2564 return AssignPointerMap(result); 2565 return AssignPointerMap(result);
2565 } 2566 }
2566 2567
2567 } } // namespace v8::internal 2568 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698