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

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

Issue 246133005: Optimize numeric comparison with known successors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 8 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.cc ('k') | src/hydrogen.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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 ASSERT(instr->value()->representation().IsTagged()); 1244 ASSERT(instr->value()->representation().IsTagged());
1245 LOperand* value = UseRegisterAtStart(instr->value()); 1245 LOperand* value = UseRegisterAtStart(instr->value());
1246 return new(zone()) LClassOfTestAndBranch(value, 1246 return new(zone()) LClassOfTestAndBranch(value,
1247 TempRegister(), 1247 TempRegister(),
1248 TempRegister()); 1248 TempRegister());
1249 } 1249 }
1250 1250
1251 1251
1252 LInstruction* LChunkBuilder::DoCompareNumericAndBranch( 1252 LInstruction* LChunkBuilder::DoCompareNumericAndBranch(
1253 HCompareNumericAndBranch* instr) { 1253 HCompareNumericAndBranch* instr) {
1254 LInstruction* goto_instr = CheckElideControlInstruction(instr);
1255 if (goto_instr != NULL) return goto_instr;
1254 Representation r = instr->representation(); 1256 Representation r = instr->representation();
1255
1256 if (r.IsSmiOrInteger32()) { 1257 if (r.IsSmiOrInteger32()) {
1257 ASSERT(instr->left()->representation().Equals(r)); 1258 ASSERT(instr->left()->representation().Equals(r));
1258 ASSERT(instr->right()->representation().Equals(r)); 1259 ASSERT(instr->right()->representation().Equals(r));
1259 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); 1260 LOperand* left = UseRegisterOrConstantAtStart(instr->left());
1260 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); 1261 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1261 return new(zone()) LCompareNumericAndBranch(left, right); 1262 return new(zone()) LCompareNumericAndBranch(left, right);
1262 } else { 1263 } else {
1263 ASSERT(r.IsDouble()); 1264 ASSERT(r.IsDouble());
1264 ASSERT(instr->left()->representation().IsDouble()); 1265 ASSERT(instr->left()->representation().IsDouble());
1265 ASSERT(instr->right()->representation().IsDouble()); 1266 ASSERT(instr->right()->representation().IsDouble());
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 2571
2571 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2572 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2572 LOperand* receiver = UseRegister(instr->receiver()); 2573 LOperand* receiver = UseRegister(instr->receiver());
2573 LOperand* function = UseRegister(instr->function()); 2574 LOperand* function = UseRegister(instr->function());
2574 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2575 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2575 return AssignEnvironment(DefineAsRegister(result)); 2576 return AssignEnvironment(DefineAsRegister(result));
2576 } 2577 }
2577 2578
2578 2579
2579 } } // namespace v8::internal 2580 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698