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

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

Issue 19560003: [v8-dev] ARM: Make double registers low/high safe (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
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 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 if (instr->CanOmitMapChecks()) return result; 2048 if (instr->CanOmitMapChecks()) return result;
2049 return AssignEnvironment(result); 2049 return AssignEnvironment(result);
2050 } 2050 }
2051 2051
2052 2052
2053 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { 2053 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
2054 HValue* value = instr->value(); 2054 HValue* value = instr->value();
2055 Representation input_rep = value->representation(); 2055 Representation input_rep = value->representation();
2056 LOperand* reg = UseRegister(value); 2056 LOperand* reg = UseRegister(value);
2057 if (input_rep.IsDouble()) { 2057 if (input_rep.IsDouble()) {
2058 return DefineAsRegister(new(zone()) LClampDToUint8(reg, FixedTemp(d11))); 2058 return DefineAsRegister(new(zone()) LClampDToUint8(reg));
2059 } else if (input_rep.IsInteger32()) { 2059 } else if (input_rep.IsInteger32()) {
2060 return DefineAsRegister(new(zone()) LClampIToUint8(reg)); 2060 return DefineAsRegister(new(zone()) LClampIToUint8(reg));
2061 } else { 2061 } else {
2062 ASSERT(input_rep.IsSmiOrTagged()); 2062 ASSERT(input_rep.IsSmiOrTagged());
2063 // Register allocator doesn't (yet) support allocation of double 2063 // Register allocator doesn't (yet) support allocation of double
2064 // temps. Reserve d1 explicitly. 2064 // temps. Reserve d1 explicitly.
2065 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11)); 2065 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11));
2066 return AssignEnvironment(DefineAsRegister(result)); 2066 return AssignEnvironment(DefineAsRegister(result));
2067 } 2067 }
2068 } 2068 }
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 2635
2636 2636
2637 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2637 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2638 LOperand* object = UseRegister(instr->object()); 2638 LOperand* object = UseRegister(instr->object());
2639 LOperand* index = UseRegister(instr->index()); 2639 LOperand* index = UseRegister(instr->index());
2640 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2640 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2641 } 2641 }
2642 2642
2643 2643
2644 } } // namespace v8::internal 2644 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698