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

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: 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 // Make sure that the lithium instruction has either no fixed register 697 // Make sure that the lithium instruction has either no fixed register
698 // constraints in temps or the result OR no uses that are only used at 698 // constraints in temps or the result OR no uses that are only used at
699 // start. If this invariant doesn't hold, the register allocator can decide 699 // start. If this invariant doesn't hold, the register allocator can decide
700 // to insert a split of a range immediately before the instruction due to an 700 // to insert a split of a range immediately before the instruction due to an
701 // already allocated register needing to be used for the instruction's fixed 701 // already allocated register needing to be used for the instruction's fixed
702 // register constraint. In this case, the register allocator won't see an 702 // register constraint. In this case, the register allocator won't see an
703 // interference between the split child and the use-at-start (it would if 703 // interference between the split child and the use-at-start (it would if
704 // the it was just a plain use), so it is free to move the split child into 704 // the it was just a plain use), so it is free to move the split child into
705 // the same register that is used for the use-at-start. 705 // the same register that is used for the use-at-start.
706 // See https://code.google.com/p/chromium/issues/detail?id=201590 706 // See https://code.google.com/p/chromium/issues/detail?id=201590
707 if (!(instr->ClobbersRegisters() && instr->ClobbersDoubleRegisters())) { 707 if (!(instr->ClobbersRegisters() &&
708 instr->ClobbersDoubleRegisters(isolate()))) {
708 int fixed = 0; 709 int fixed = 0;
709 int used_at_start = 0; 710 int used_at_start = 0;
710 for (UseIterator it(instr); !it.Done(); it.Advance()) { 711 for (UseIterator it(instr); !it.Done(); it.Advance()) {
711 LUnallocated* operand = LUnallocated::cast(it.Current()); 712 LUnallocated* operand = LUnallocated::cast(it.Current());
712 if (operand->IsUsedAtStart()) ++used_at_start; 713 if (operand->IsUsedAtStart()) ++used_at_start;
713 } 714 }
714 if (instr->Output() != NULL) { 715 if (instr->Output() != NULL) {
715 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 716 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
716 } 717 }
717 for (TempIterator it(instr); !it.Done(); it.Advance()) { 718 for (TempIterator it(instr); !it.Done(); it.Advance()) {
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 2577
2577 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2578 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2578 LOperand* receiver = UseRegister(instr->receiver()); 2579 LOperand* receiver = UseRegister(instr->receiver());
2579 LOperand* function = UseRegister(instr->function()); 2580 LOperand* function = UseRegister(instr->function());
2580 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2581 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2581 return AssignEnvironment(DefineAsRegister(result)); 2582 return AssignEnvironment(DefineAsRegister(result));
2582 } 2583 }
2583 2584
2584 2585
2585 } } // namespace v8::internal 2586 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698