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

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

Issue 7019008: Remaining (forgotten) feedback for pixel array deopt fix (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) { 1754 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
1755 HValue* value = instr->value(); 1755 HValue* value = instr->value();
1756 Representation input_rep = value->representation(); 1756 Representation input_rep = value->representation();
1757 LOperand* reg = UseRegister(value); 1757 LOperand* reg = UseRegister(value);
1758 if (input_rep.IsDouble()) { 1758 if (input_rep.IsDouble()) {
1759 return DefineAsRegister(new LClampDoubleToUint8(reg, FixedTemp(d1))); 1759 return DefineAsRegister(new LClampDToUint8(reg, FixedTemp(d1)));
1760 } else if (input_rep.IsInteger32()) { 1760 } else if (input_rep.IsInteger32()) {
1761 return DefineAsRegister(new LClampIToUint8(reg)); 1761 return DefineAsRegister(new LClampIToUint8(reg));
1762 } else { 1762 } else {
1763 ASSERT(input_rep.IsTagged()); 1763 ASSERT(input_rep.IsTagged());
1764 // Register allocator doesn't (yet) support allocation of double 1764 // Register allocator doesn't (yet) support allocation of double
1765 // temps. Reserve d1 explicitly. 1765 // temps. Reserve d1 explicitly.
1766 LClampTaggedToUint8* result = new LClampTaggedToUint8(reg, FixedTemp(d1)); 1766 LClampTToUint8* result = new LClampTToUint8(reg, FixedTemp(d1));
1767 return AssignEnvironment(DefineAsRegister(result)); 1767 return AssignEnvironment(DefineAsRegister(result));
1768 } 1768 }
1769 } 1769 }
1770 1770
1771 1771
1772 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1772 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1773 return new LReturn(UseFixed(instr->value(), r0)); 1773 return new LReturn(UseFixed(instr->value(), r0));
1774 } 1774 }
1775 1775
1776 1776
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 2198
2199 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2199 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2200 LOperand* key = UseRegisterAtStart(instr->key()); 2200 LOperand* key = UseRegisterAtStart(instr->key());
2201 LOperand* object = UseRegisterAtStart(instr->object()); 2201 LOperand* object = UseRegisterAtStart(instr->object());
2202 LIn* result = new LIn(key, object); 2202 LIn* result = new LIn(key, object);
2203 return MarkAsCall(DefineFixed(result, r0), instr); 2203 return MarkAsCall(DefineFixed(result, r0), instr);
2204 } 2204 }
2205 2205
2206 2206
2207 } } // 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