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

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

Issue 189533008: Revert "Introduce intrinsics for double values in Javascript." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/ia32/lithium-ia32.h ('k') | src/runtime.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 // 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 LOperand* value = UseRegister(instr->value()); 1967 LOperand* value = UseRegister(instr->value());
1968 LClampTToUint8NoSSE2* res = 1968 LClampTToUint8NoSSE2* res =
1969 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), 1969 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(),
1970 TempRegister(), TempRegister()); 1970 TempRegister(), TempRegister());
1971 return AssignEnvironment(DefineFixed(res, ecx)); 1971 return AssignEnvironment(DefineFixed(res, ecx));
1972 } 1972 }
1973 } 1973 }
1974 } 1974 }
1975 1975
1976 1976
1977 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) {
1978 HValue* value = instr->value();
1979 ASSERT(value->representation().IsDouble());
1980 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value)));
1981 }
1982
1983
1984 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) {
1985 LOperand* lo = UseRegister(instr->lo());
1986 LOperand* hi = UseRegister(instr->hi());
1987 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo));
1988 }
1989
1990
1991 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1977 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1992 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; 1978 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL;
1993 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 1979 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
1994 return new(zone()) LReturn( 1980 return new(zone()) LReturn(
1995 UseFixed(instr->value(), eax), context, parameter_count); 1981 UseFixed(instr->value(), eax), context, parameter_count);
1996 } 1982 }
1997 1983
1998 1984
1999 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { 1985 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
2000 Representation r = instr->representation(); 1986 Representation r = instr->representation();
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
2604 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2590 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2605 LOperand* object = UseRegister(instr->object()); 2591 LOperand* object = UseRegister(instr->object());
2606 LOperand* index = UseTempRegister(instr->index()); 2592 LOperand* index = UseTempRegister(instr->index());
2607 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2593 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2608 } 2594 }
2609 2595
2610 2596
2611 } } // namespace v8::internal 2597 } } // namespace v8::internal
2612 2598
2613 #endif // V8_TARGET_ARCH_IA32 2599 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698