OLD | NEW |
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 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2359 } | 2359 } |
2360 break; | 2360 break; |
2361 } | 2361 } |
2362 | 2362 |
2363 case CMN: { | 2363 case CMN: { |
2364 if (instr->HasS()) { | 2364 if (instr->HasS()) { |
2365 // Format(instr, "cmn'cond 'rn, 'shift_rm"); | 2365 // Format(instr, "cmn'cond 'rn, 'shift_rm"); |
2366 // Format(instr, "cmn'cond 'rn, 'imm"); | 2366 // Format(instr, "cmn'cond 'rn, 'imm"); |
2367 alu_out = rn_val + shifter_operand; | 2367 alu_out = rn_val + shifter_operand; |
2368 SetNZFlags(alu_out); | 2368 SetNZFlags(alu_out); |
2369 SetCFlag(!CarryFrom(rn_val, shifter_operand)); | 2369 SetCFlag(CarryFrom(rn_val, shifter_operand)); |
2370 SetVFlag(OverflowFrom(alu_out, rn_val, shifter_operand, true)); | 2370 SetVFlag(OverflowFrom(alu_out, rn_val, shifter_operand, true)); |
2371 } else { | 2371 } else { |
2372 // Other instructions matching this pattern are handled in the | 2372 // Other instructions matching this pattern are handled in the |
2373 // miscellaneous instructions part above. | 2373 // miscellaneous instructions part above. |
2374 UNREACHABLE(); | 2374 UNREACHABLE(); |
2375 } | 2375 } |
2376 break; | 2376 break; |
2377 } | 2377 } |
2378 | 2378 |
2379 case ORR: { | 2379 case ORR: { |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3384 uintptr_t address = *stack_slot; | 3384 uintptr_t address = *stack_slot; |
3385 set_register(sp, current_sp + sizeof(uintptr_t)); | 3385 set_register(sp, current_sp + sizeof(uintptr_t)); |
3386 return address; | 3386 return address; |
3387 } | 3387 } |
3388 | 3388 |
3389 } } // namespace v8::internal | 3389 } } // namespace v8::internal |
3390 | 3390 |
3391 #endif // USE_SIMULATOR | 3391 #endif // USE_SIMULATOR |
3392 | 3392 |
3393 #endif // V8_TARGET_ARCH_ARM | 3393 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |