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

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

Issue 11116011: Simulate and disasm NOP on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Go back to MOV for NOP instead of the actual NOP instruction: it doesn't actually have a perf benef… 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/disasm-arm.cc ('k') | no next file » | 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 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 set_register(rd, leading_zeros); 2215 set_register(rd, leading_zeros);
2216 break; 2216 break;
2217 } 2217 }
2218 default: 2218 default:
2219 UNIMPLEMENTED(); 2219 UNIMPLEMENTED();
2220 } 2220 }
2221 } else { 2221 } else {
2222 PrintF("%08x\n", instr->InstructionBits()); 2222 PrintF("%08x\n", instr->InstructionBits());
2223 UNIMPLEMENTED(); 2223 UNIMPLEMENTED();
2224 } 2224 }
2225 } else if ((type == 1) && instr->IsNopType1()) {
2226 // NOP.
2225 } else { 2227 } else {
2226 int rd = instr->RdValue(); 2228 int rd = instr->RdValue();
2227 int rn = instr->RnValue(); 2229 int rn = instr->RnValue();
2228 int32_t rn_val = get_register(rn); 2230 int32_t rn_val = get_register(rn);
2229 int32_t shifter_operand = 0; 2231 int32_t shifter_operand = 0;
2230 bool shifter_carry_out = 0; 2232 bool shifter_carry_out = 0;
2231 if (type == 0) { 2233 if (type == 0) {
2232 shifter_operand = GetShiftRm(instr, &shifter_carry_out); 2234 shifter_operand = GetShiftRm(instr, &shifter_carry_out);
2233 } else { 2235 } else {
2234 ASSERT(instr->TypeValue() == 1); 2236 ASSERT(instr->TypeValue() == 1);
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
3415 uintptr_t address = *stack_slot; 3417 uintptr_t address = *stack_slot;
3416 set_register(sp, current_sp + sizeof(uintptr_t)); 3418 set_register(sp, current_sp + sizeof(uintptr_t));
3417 return address; 3419 return address;
3418 } 3420 }
3419 3421
3420 } } // namespace v8::internal 3422 } } // namespace v8::internal
3421 3423
3422 #endif // USE_SIMULATOR 3424 #endif // USE_SIMULATOR
3423 3425
3424 #endif // V8_TARGET_ARCH_ARM 3426 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698