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

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

Issue 6368053: Implements DoubleToI on ARM. Refactor some VFP code at the same time and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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/constants-arm.h ('k') | src/arm/lithium-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 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 inputs_[0] = value; 1368 inputs_[0] = value;
1369 temps_[0] = temp1; 1369 temps_[0] = temp1;
1370 temps_[1] = temp2; 1370 temps_[1] = temp2;
1371 } 1371 }
1372 1372
1373 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") 1373 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
1374 }; 1374 };
1375 1375
1376 1376
1377 // Sometimes truncating conversion from a tagged value to an int32. 1377 // Sometimes truncating conversion from a tagged value to an int32.
1378 class LDoubleToI: public LTemplateInstruction<1, 1, 0> { 1378 class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
1379 public: 1379 public:
1380 explicit LDoubleToI(LOperand* value) { 1380 explicit LDoubleToI(LOperand* value, LOperand* temp1) {
1381 inputs_[0] = value; 1381 inputs_[0] = value;
1382 temps_[0] = temp1;
1382 } 1383 }
1383 1384
1384 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i") 1385 DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
1385 DECLARE_HYDROGEN_ACCESSOR(Change) 1386 DECLARE_HYDROGEN_ACCESSOR(Change)
1386 1387
1387 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 1388 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1388 }; 1389 };
1389 1390
1390 1391
1391 // Truncating conversion from a tagged value to an int32. 1392 // Truncating conversion from a tagged value to an int32.
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1940 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1940 }; 1941 };
1941 1942
1942 #undef DECLARE_HYDROGEN_ACCESSOR 1943 #undef DECLARE_HYDROGEN_ACCESSOR
1943 #undef DECLARE_INSTRUCTION 1944 #undef DECLARE_INSTRUCTION
1944 #undef DECLARE_CONCRETE_INSTRUCTION 1945 #undef DECLARE_CONCRETE_INSTRUCTION
1945 1946
1946 } } // namespace v8::internal 1947 } } // namespace v8::internal
1947 1948
1948 #endif // V8_ARM_LITHIUM_ARM_H_ 1949 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698