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

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

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/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('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 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 1528
1529 // Make sure that the temp and result_temp registers are 1529 // Make sure that the temp and result_temp registers are
1530 // different. 1530 // different.
1531 LUnallocated* result_temp = TempRegister(); 1531 LUnallocated* result_temp = TempRegister();
1532 LNumberTagD* result = new LNumberTagD(value, temp1, temp2); 1532 LNumberTagD* result = new LNumberTagD(value, temp1, temp2);
1533 Define(result, result_temp); 1533 Define(result, result_temp);
1534 return AssignPointerMap(result); 1534 return AssignPointerMap(result);
1535 } else { 1535 } else {
1536 ASSERT(to.IsInteger32()); 1536 ASSERT(to.IsInteger32());
1537 LOperand* value = UseRegister(instr->value()); 1537 LOperand* value = UseRegister(instr->value());
1538 LDoubleToI* res = new LDoubleToI(value); 1538 LDoubleToI* res = new LDoubleToI(value, TempRegister());
1539 return AssignEnvironment(DefineAsRegister(res)); 1539 return AssignEnvironment(DefineAsRegister(res));
1540 } 1540 }
1541 } else if (from.IsInteger32()) { 1541 } else if (from.IsInteger32()) {
1542 if (to.IsTagged()) { 1542 if (to.IsTagged()) {
1543 HValue* val = instr->value(); 1543 HValue* val = instr->value();
1544 LOperand* value = UseRegister(val); 1544 LOperand* value = UseRegister(val);
1545 if (val->HasRange() && val->range()->IsInSmiRange()) { 1545 if (val->HasRange() && val->range()->IsInSmiRange()) {
1546 return DefineSameAsFirst(new LSmiTag(value)); 1546 return DefineSameAsFirst(new LSmiTag(value));
1547 } else { 1547 } else {
1548 LNumberTagI* result = new LNumberTagI(value); 1548 LNumberTagI* result = new LNumberTagI(value);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 1907
1908 1908
1909 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1909 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1910 HEnvironment* outer = current_block_->last_environment()->outer(); 1910 HEnvironment* outer = current_block_->last_environment()->outer();
1911 current_block_->UpdateEnvironment(outer); 1911 current_block_->UpdateEnvironment(outer);
1912 return NULL; 1912 return NULL;
1913 } 1913 }
1914 1914
1915 1915
1916 } } // namespace v8::internal 1916 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698