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

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

Issue 10984057: Replace a set of Hydrogen instructions with rotate instructions on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 2 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-codegen-arm.cc ('k') | src/flag-definitions.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 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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 *carry_out = (result < 0); 1491 *carry_out = (result < 0);
1492 result = 0; 1492 result = 0;
1493 } else { 1493 } else {
1494 *carry_out = false; 1494 *carry_out = false;
1495 result = 0; 1495 result = 0;
1496 } 1496 }
1497 break; 1497 break;
1498 } 1498 }
1499 1499
1500 case ROR: { 1500 case ROR: {
1501 UNIMPLEMENTED(); 1501 if (shift_amount == 0) {
1502 *carry_out = c_flag_;
1503 } else {
1504 uint32_t left = static_cast<uint32_t>(result) >> shift_amount;
1505 uint32_t right = static_cast<uint32_t>(result) << (32 - shift_amount);
1506 result = right | left;
1507 *carry_out = (static_cast<uint32_t>(result) >> 31) != 0;
1508 }
1502 break; 1509 break;
1503 } 1510 }
1504 1511
1505 default: { 1512 default: {
1506 UNREACHABLE(); 1513 UNREACHABLE();
1507 break; 1514 break;
1508 } 1515 }
1509 } 1516 }
1510 } 1517 }
1511 return result; 1518 return result;
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 uintptr_t address = *stack_slot; 3391 uintptr_t address = *stack_slot;
3385 set_register(sp, current_sp + sizeof(uintptr_t)); 3392 set_register(sp, current_sp + sizeof(uintptr_t));
3386 return address; 3393 return address;
3387 } 3394 }
3388 3395
3389 } } // namespace v8::internal 3396 } } // namespace v8::internal
3390 3397
3391 #endif // USE_SIMULATOR 3398 #endif // USE_SIMULATOR
3392 3399
3393 #endif // V8_TARGET_ARCH_ARM 3400 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698