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

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

Issue 189823003: Reland "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/x64/lithium-x64.h ('k') | test/mjsunit/double-intrinsics.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 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 ASSERT(input_rep.IsSmiOrTagged()); 1924 ASSERT(input_rep.IsSmiOrTagged());
1925 // Register allocator doesn't (yet) support allocation of double 1925 // Register allocator doesn't (yet) support allocation of double
1926 // temps. Reserve xmm1 explicitly. 1926 // temps. Reserve xmm1 explicitly.
1927 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, 1927 LClampTToUint8* result = new(zone()) LClampTToUint8(reg,
1928 FixedTemp(xmm1)); 1928 FixedTemp(xmm1));
1929 return AssignEnvironment(DefineSameAsFirst(result)); 1929 return AssignEnvironment(DefineSameAsFirst(result));
1930 } 1930 }
1931 } 1931 }
1932 1932
1933 1933
1934 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) {
1935 HValue* value = instr->value();
1936 ASSERT(value->representation().IsDouble());
1937 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value)));
1938 }
1939
1940
1941 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) {
1942 LOperand* lo = UseRegister(instr->lo());
1943 LOperand* hi = UseRegister(instr->hi());
1944 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo));
1945 }
1946
1947
1934 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1948 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1935 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), rsi) : NULL; 1949 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), rsi) : NULL;
1936 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 1950 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
1937 return new(zone()) LReturn( 1951 return new(zone()) LReturn(
1938 UseFixed(instr->value(), rax), context, parameter_count); 1952 UseFixed(instr->value(), rax), context, parameter_count);
1939 } 1953 }
1940 1954
1941 1955
1942 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { 1956 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
1943 Representation r = instr->representation(); 1957 Representation r = instr->representation();
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2519 LOperand* object = UseRegister(instr->object()); 2533 LOperand* object = UseRegister(instr->object());
2520 LOperand* index = UseTempRegister(instr->index()); 2534 LOperand* index = UseTempRegister(instr->index());
2521 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2535 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2522 } 2536 }
2523 2537
2524 2538
2525 } } // namespace v8::internal 2539 } } // namespace v8::internal
2526 2540
2527 #endif // V8_TARGET_ARCH_X64 2541 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/double-intrinsics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698