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

Side by Side Diff: src/crankshaft/mips/lithium-mips.cc

Issue 1680783002: [intrinsics] Kill the %_IsMinusZero intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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 "src/crankshaft/mips/lithium-mips.h" 5 #include "src/crankshaft/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 } 1683 }
1684 1684
1685 1685
1686 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1686 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1687 HCompareHoleAndBranch* instr) { 1687 HCompareHoleAndBranch* instr) {
1688 LOperand* value = UseRegisterAtStart(instr->value()); 1688 LOperand* value = UseRegisterAtStart(instr->value());
1689 return new(zone()) LCmpHoleAndBranch(value); 1689 return new(zone()) LCmpHoleAndBranch(value);
1690 } 1690 }
1691 1691
1692 1692
1693 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch(
1694 HCompareMinusZeroAndBranch* instr) {
1695 LOperand* value = UseRegister(instr->value());
1696 LOperand* scratch = TempRegister();
1697 return new(zone()) LCompareMinusZeroAndBranch(value, scratch);
1698 }
1699
1700
1701 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1693 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1702 DCHECK(instr->value()->representation().IsTagged()); 1694 DCHECK(instr->value()->representation().IsTagged());
1703 LOperand* temp = TempRegister(); 1695 LOperand* temp = TempRegister();
1704 return new(zone()) LIsStringAndBranch(UseRegisterAtStart(instr->value()), 1696 return new(zone()) LIsStringAndBranch(UseRegisterAtStart(instr->value()),
1705 temp); 1697 temp);
1706 } 1698 }
1707 1699
1708 1700
1709 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { 1701 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) {
1710 DCHECK(instr->value()->representation().IsTagged()); 1702 DCHECK(instr->value()->representation().IsTagged());
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 LOperand* function = UseRegisterAtStart(instr->function()); 2562 LOperand* function = UseRegisterAtStart(instr->function());
2571 LAllocateBlockContext* result = 2563 LAllocateBlockContext* result =
2572 new(zone()) LAllocateBlockContext(context, function); 2564 new(zone()) LAllocateBlockContext(context, function);
2573 return MarkAsCall(DefineFixed(result, cp), instr); 2565 return MarkAsCall(DefineFixed(result, cp), instr);
2574 } 2566 }
2575 2567
2576 } // namespace internal 2568 } // namespace internal
2577 } // namespace v8 2569 } // namespace v8
2578 2570
2579 #endif // V8_TARGET_ARCH_MIPS 2571 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698