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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 80513004: Revert 17963, 17962 and 17955: Random number generator in JS changes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove Yang's changes, too Created 7 years, 1 month 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/ia32/lithium-ia32.h ('k') | src/math.js » ('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 // 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 LOperand* left = UseFixedDouble(instr->left(), xmm2); 1688 LOperand* left = UseFixedDouble(instr->left(), xmm2);
1689 LOperand* right = exponent_type.IsDouble() ? 1689 LOperand* right = exponent_type.IsDouble() ?
1690 UseFixedDouble(instr->right(), xmm1) : 1690 UseFixedDouble(instr->right(), xmm1) :
1691 UseFixed(instr->right(), eax); 1691 UseFixed(instr->right(), eax);
1692 LPower* result = new(zone()) LPower(left, right); 1692 LPower* result = new(zone()) LPower(left, right);
1693 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, 1693 return MarkAsCall(DefineFixedDouble(result, xmm3), instr,
1694 CAN_DEOPTIMIZE_EAGERLY); 1694 CAN_DEOPTIMIZE_EAGERLY);
1695 } 1695 }
1696 1696
1697 1697
1698 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) {
1699 ASSERT(instr->representation().IsDouble());
1700 ASSERT(instr->global_object()->representation().IsTagged());
1701 LOperand* global_object = UseTempRegister(instr->global_object());
1702 LOperand* scratch = TempRegister();
1703 LOperand* scratch2 = TempRegister();
1704 LOperand* scratch3 = TempRegister();
1705 LRandom* result = new(zone()) LRandom(
1706 global_object, scratch, scratch2, scratch3);
1707 return DefineFixedDouble(result, xmm1);
1708 }
1709
1710
1698 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { 1711 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
1699 ASSERT(instr->left()->representation().IsSmiOrTagged()); 1712 ASSERT(instr->left()->representation().IsSmiOrTagged());
1700 ASSERT(instr->right()->representation().IsSmiOrTagged()); 1713 ASSERT(instr->right()->representation().IsSmiOrTagged());
1701 LOperand* context = UseFixed(instr->context(), esi); 1714 LOperand* context = UseFixed(instr->context(), esi);
1702 LOperand* left = UseFixed(instr->left(), edx); 1715 LOperand* left = UseFixed(instr->left(), edx);
1703 LOperand* right = UseFixed(instr->right(), eax); 1716 LOperand* right = UseFixed(instr->right(), eax);
1704 LCmpT* result = new(zone()) LCmpT(context, left, right); 1717 LCmpT* result = new(zone()) LCmpT(context, left, right);
1705 return MarkAsCall(DefineFixed(result, eax), instr); 1718 return MarkAsCall(DefineFixed(result, eax), instr);
1706 } 1719 }
1707 1720
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2786 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2774 LOperand* object = UseRegister(instr->object()); 2787 LOperand* object = UseRegister(instr->object());
2775 LOperand* index = UseTempRegister(instr->index()); 2788 LOperand* index = UseTempRegister(instr->index());
2776 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2789 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2777 } 2790 }
2778 2791
2779 2792
2780 } } // namespace v8::internal 2793 } } // namespace v8::internal
2781 2794
2782 #endif // V8_TARGET_ARCH_IA32 2795 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698