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

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

Issue 160423002: A64 support for DoubleToIStub (truncating). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test cases Created 6 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/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 LOperand* temp1 = TempRegister(); 1114 LOperand* temp1 = TempRegister();
1115 LOperand* temp2 = TempRegister(); 1115 LOperand* temp2 = TempRegister();
1116 1116
1117 LNumberTagD* result = new(zone()) LNumberTagD(value, temp1, temp2); 1117 LNumberTagD* result = new(zone()) LNumberTagD(value, temp1, temp2);
1118 return AssignPointerMap(DefineAsRegister(result)); 1118 return AssignPointerMap(DefineAsRegister(result));
1119 } else { 1119 } else {
1120 ASSERT(to.IsSmi() || to.IsInteger32()); 1120 ASSERT(to.IsSmi() || to.IsInteger32());
1121 LOperand* value = UseRegister(instr->value()); 1121 LOperand* value = UseRegister(instr->value());
1122 1122
1123 if (instr->CanTruncateToInt32()) { 1123 if (instr->CanTruncateToInt32()) {
1124 LOperand* temp1 = TempRegister();
1125 LOperand* temp2 = TempRegister();
1126 LTruncateDoubleToIntOrSmi* result = 1124 LTruncateDoubleToIntOrSmi* result =
1127 new(zone()) LTruncateDoubleToIntOrSmi(value, temp1, temp2); 1125 new(zone()) LTruncateDoubleToIntOrSmi(value);
1128 return DefineAsRegister(result); 1126 return DefineAsRegister(result);
1129 } else { 1127 } else {
1130 LDoubleToIntOrSmi* result = new(zone()) LDoubleToIntOrSmi(value); 1128 LDoubleToIntOrSmi* result = new(zone()) LDoubleToIntOrSmi(value);
1131 return AssignEnvironment(DefineAsRegister(result)); 1129 return AssignEnvironment(DefineAsRegister(result));
1132 } 1130 }
1133 } 1131 }
1134 } else if (from.IsInteger32()) { 1132 } else if (from.IsInteger32()) {
1135 info()->MarkAsDeferredCalling(); 1133 info()->MarkAsDeferredCalling();
1136 if (to.IsTagged()) { 1134 if (to.IsTagged()) {
1137 if (instr->value()->CheckFlag(HInstruction::kUint32)) { 1135 if (instr->value()->CheckFlag(HInstruction::kUint32)) {
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 2441
2444 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2442 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2445 LOperand* receiver = UseRegister(instr->receiver()); 2443 LOperand* receiver = UseRegister(instr->receiver());
2446 LOperand* function = UseRegister(instr->function()); 2444 LOperand* function = UseRegister(instr->function());
2447 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2445 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2448 return AssignEnvironment(DefineAsRegister(result)); 2446 return AssignEnvironment(DefineAsRegister(result));
2449 } 2447 }
2450 2448
2451 2449
2452 } } // namespace v8::internal 2450 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698