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

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

Issue 7014033: Support conversion of clamped double values for pixel arrays in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 7 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 } 1744 }
1745 1745
1746 1746
1747 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { 1747 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) {
1748 LOperand* value = UseRegisterAtStart(instr->value()); 1748 LOperand* value = UseRegisterAtStart(instr->value());
1749 LInstruction* result = new LCheckMap(value); 1749 LInstruction* result = new LCheckMap(value);
1750 return AssignEnvironment(result); 1750 return AssignEnvironment(result);
1751 } 1751 }
1752 1752
1753 1753
1754 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
1755 HValue* value = instr->value();
1756 Representation input_rep = value->representation();
1757 LOperand* reg = UseRegister(value);
1758 if (input_rep.IsDouble()) {
1759 return DefineAsRegister(new LClampDoubleToUint8(reg, FixedTemp(d1)));
1760 } else if (input_rep.IsInteger32()) {
1761 return DefineAsRegister(new LClampIToUint8(reg));
1762 } else {
1763 ASSERT(input_rep.IsTagged());
1764 // Register allocator doesn't (yet) support allocation of double
1765 // temps. Reserve d1 explicitly.
1766 LClampTaggedToUint8* result = new LClampTaggedToUint8(reg, FixedTemp(d1));
1767 return AssignEnvironment(DefineAsRegister(result));
1768 }
1769 }
1770
1771
1754 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1772 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1755 return new LReturn(UseFixed(instr->value(), r0)); 1773 return new LReturn(UseFixed(instr->value(), r0));
1756 } 1774 }
1757 1775
1758 1776
1759 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { 1777 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
1760 Representation r = instr->representation(); 1778 Representation r = instr->representation();
1761 if (r.IsInteger32()) { 1779 if (r.IsInteger32()) {
1762 return DefineAsRegister(new LConstantI); 1780 return DefineAsRegister(new LConstantI);
1763 } else if (r.IsDouble()) { 1781 } else if (r.IsDouble()) {
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 2198
2181 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2199 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2182 LOperand* key = UseRegisterAtStart(instr->key()); 2200 LOperand* key = UseRegisterAtStart(instr->key());
2183 LOperand* object = UseRegisterAtStart(instr->object()); 2201 LOperand* object = UseRegisterAtStart(instr->object());
2184 LIn* result = new LIn(key, object); 2202 LIn* result = new LIn(key, object);
2185 return MarkAsCall(DefineFixed(result, r0), instr); 2203 return MarkAsCall(DefineFixed(result, r0), instr);
2186 } 2204 }
2187 2205
2188 2206
2189 } } // namespace v8::internal 2207 } } // 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