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

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

Issue 15832004: Update ASSERT on arm to support SmiOrTagged in ClampToUint8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | 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 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 2028
2029 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 2029 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
2030 HValue* value = instr->value(); 2030 HValue* value = instr->value();
2031 Representation input_rep = value->representation(); 2031 Representation input_rep = value->representation();
2032 LOperand* reg = UseRegister(value); 2032 LOperand* reg = UseRegister(value);
2033 if (input_rep.IsDouble()) { 2033 if (input_rep.IsDouble()) {
2034 return DefineAsRegister(new(zone()) LClampDToUint8(reg, FixedTemp(d11))); 2034 return DefineAsRegister(new(zone()) LClampDToUint8(reg, FixedTemp(d11)));
2035 } else if (input_rep.IsInteger32()) { 2035 } else if (input_rep.IsInteger32()) {
2036 return DefineAsRegister(new(zone()) LClampIToUint8(reg)); 2036 return DefineAsRegister(new(zone()) LClampIToUint8(reg));
2037 } else { 2037 } else {
2038 ASSERT(input_rep.IsTagged()); 2038 ASSERT(input_rep.IsSmiOrTagged());
2039 // Register allocator doesn't (yet) support allocation of double 2039 // Register allocator doesn't (yet) support allocation of double
2040 // temps. Reserve d1 explicitly. 2040 // temps. Reserve d1 explicitly.
2041 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11)); 2041 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11));
2042 return AssignEnvironment(DefineAsRegister(result)); 2042 return AssignEnvironment(DefineAsRegister(result));
2043 } 2043 }
2044 } 2044 }
2045 2045
2046 2046
2047 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 2047 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
2048 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 2048 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 2626
2627 2627
2628 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2628 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2629 LOperand* object = UseRegister(instr->object()); 2629 LOperand* object = UseRegister(instr->object());
2630 LOperand* index = UseRegister(instr->index()); 2630 LOperand* index = UseRegister(instr->index());
2631 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2631 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2632 } 2632 }
2633 2633
2634 2634
2635 } } // namespace v8::internal 2635 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698