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

Side by Side Diff: src/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 // 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 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 } else { 1932 } else {
1933 ASSERT(input_rep.IsSmiOrTagged()); 1933 ASSERT(input_rep.IsSmiOrTagged());
1934 // Register allocator doesn't (yet) support allocation of double 1934 // Register allocator doesn't (yet) support allocation of double
1935 // temps. Reserve d1 explicitly. 1935 // temps. Reserve d1 explicitly.
1936 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11)); 1936 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11));
1937 return AssignEnvironment(DefineAsRegister(result)); 1937 return AssignEnvironment(DefineAsRegister(result));
1938 } 1938 }
1939 } 1939 }
1940 1940
1941 1941
1942 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) {
1943 HValue* value = instr->value();
1944 ASSERT(value->representation().IsDouble());
1945 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value)));
1946 }
1947
1948
1949 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) {
1950 LOperand* lo = UseRegister(instr->lo());
1951 LOperand* hi = UseRegister(instr->hi());
1952 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo));
1953 }
1954
1955
1956 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1942 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1957 LOperand* context = info()->IsStub() 1943 LOperand* context = info()->IsStub()
1958 ? UseFixed(instr->context(), cp) 1944 ? UseFixed(instr->context(), cp)
1959 : NULL; 1945 : NULL;
1960 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 1946 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
1961 return new(zone()) LReturn(UseFixed(instr->value(), r0), context, 1947 return new(zone()) LReturn(UseFixed(instr->value(), r0), context,
1962 parameter_count); 1948 parameter_count);
1963 } 1949 }
1964 1950
1965 1951
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 } 2477 }
2492 2478
2493 2479
2494 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2480 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2495 LOperand* object = UseRegister(instr->object()); 2481 LOperand* object = UseRegister(instr->object());
2496 LOperand* index = UseRegister(instr->index()); 2482 LOperand* index = UseRegister(instr->index());
2497 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2483 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2498 } 2484 }
2499 2485
2500 } } // namespace v8::internal 2486 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698