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

Side by Side Diff: src/arm/lithium-arm.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/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 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 } else { 1995 } else {
1996 ASSERT(input_rep.IsSmiOrTagged()); 1996 ASSERT(input_rep.IsSmiOrTagged());
1997 // Register allocator doesn't (yet) support allocation of double 1997 // Register allocator doesn't (yet) support allocation of double
1998 // temps. Reserve d1 explicitly. 1998 // temps. Reserve d1 explicitly.
1999 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11)); 1999 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11));
2000 return AssignEnvironment(DefineAsRegister(result)); 2000 return AssignEnvironment(DefineAsRegister(result));
2001 } 2001 }
2002 } 2002 }
2003 2003
2004 2004
2005 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) {
2006 HValue* value = instr->value();
2007 ASSERT(value->representation().IsDouble());
2008 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value)));
2009 }
2010
2011
2012 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) {
2013 LOperand* lo = UseRegister(instr->lo());
2014 LOperand* hi = UseRegister(instr->hi());
2015 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo));
2016 }
2017
2018
2005 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 2019 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
2006 LOperand* context = info()->IsStub() 2020 LOperand* context = info()->IsStub()
2007 ? UseFixed(instr->context(), cp) 2021 ? UseFixed(instr->context(), cp)
2008 : NULL; 2022 : NULL;
2009 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 2023 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
2010 return new(zone()) LReturn(UseFixed(instr->value(), r0), context, 2024 return new(zone()) LReturn(UseFixed(instr->value(), r0), context,
2011 parameter_count); 2025 parameter_count);
2012 } 2026 }
2013 2027
2014 2028
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 } 2554 }
2541 2555
2542 2556
2543 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2544 LOperand* object = UseRegister(instr->object()); 2558 LOperand* object = UseRegister(instr->object());
2545 LOperand* index = UseRegister(instr->index()); 2559 LOperand* index = UseRegister(instr->index());
2546 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2560 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2547 } 2561 }
2548 2562
2549 } } // namespace v8::internal 2563 } } // 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