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

Side by Side Diff: src/arm64/lithium-arm64.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/arm64/lithium-arm64.h ('k') | src/arm64/macro-assembler-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "arm64/lithium-arm64.h" 8 #include "arm64/lithium-arm64.h"
9 #include "arm64/lithium-codegen-arm64.h" 9 #include "arm64/lithium-codegen-arm64.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // Make sure that the lithium instruction has either no fixed register 674 // Make sure that the lithium instruction has either no fixed register
675 // constraints in temps or the result OR no uses that are only used at 675 // constraints in temps or the result OR no uses that are only used at
676 // start. If this invariant doesn't hold, the register allocator can decide 676 // start. If this invariant doesn't hold, the register allocator can decide
677 // to insert a split of a range immediately before the instruction due to an 677 // to insert a split of a range immediately before the instruction due to an
678 // already allocated register needing to be used for the instruction's fixed 678 // already allocated register needing to be used for the instruction's fixed
679 // register constraint. In this case, the register allocator won't see an 679 // register constraint. In this case, the register allocator won't see an
680 // interference between the split child and the use-at-start (it would if 680 // interference between the split child and the use-at-start (it would if
681 // the it was just a plain use), so it is free to move the split child into 681 // the it was just a plain use), so it is free to move the split child into
682 // the same register that is used for the use-at-start. 682 // the same register that is used for the use-at-start.
683 // See https://code.google.com/p/chromium/issues/detail?id=201590 683 // See https://code.google.com/p/chromium/issues/detail?id=201590
684 if (!(instr->ClobbersRegisters() && instr->ClobbersDoubleRegisters())) { 684 if (!(instr->ClobbersRegisters() &&
685 instr->ClobbersDoubleRegisters(isolate()))) {
685 int fixed = 0; 686 int fixed = 0;
686 int used_at_start = 0; 687 int used_at_start = 0;
687 for (UseIterator it(instr); !it.Done(); it.Advance()) { 688 for (UseIterator it(instr); !it.Done(); it.Advance()) {
688 LUnallocated* operand = LUnallocated::cast(it.Current()); 689 LUnallocated* operand = LUnallocated::cast(it.Current());
689 if (operand->IsUsedAtStart()) ++used_at_start; 690 if (operand->IsUsedAtStart()) ++used_at_start;
690 } 691 }
691 if (instr->Output() != NULL) { 692 if (instr->Output() != NULL) {
692 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 693 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
693 } 694 }
694 for (TempIterator it(instr); !it.Done(); it.Advance()) { 695 for (TempIterator it(instr); !it.Done(); it.Advance()) {
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2553 2554
2554 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2555 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2555 LOperand* receiver = UseRegister(instr->receiver()); 2556 LOperand* receiver = UseRegister(instr->receiver());
2556 LOperand* function = UseRegister(instr->function()); 2557 LOperand* function = UseRegister(instr->function());
2557 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2558 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2558 return AssignEnvironment(DefineAsRegister(result)); 2559 return AssignEnvironment(DefineAsRegister(result));
2559 } 2560 }
2560 2561
2561 2562
2562 } } // namespace v8::internal 2563 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.h ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698