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

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

Issue 119036: * Modify simulator and ARM code generator to avoid swi... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 break; 246 break;
247 } 247 }
248 } 248 }
249 } 249 }
250 250
251 251
252 // Print SoftwareInterrupt codes. Factoring this out reduces the complexity of 252 // Print SoftwareInterrupt codes. Factoring this out reduces the complexity of
253 // the FormatOption method. 253 // the FormatOption method.
254 void Decoder::PrintSoftwareInterrupt(SoftwareInterruptCodes swi) { 254 void Decoder::PrintSoftwareInterrupt(SoftwareInterruptCodes swi) {
255 switch (swi) { 255 switch (swi) {
256 case call_rt_r5: 256 case call_rt_redirected:
257 Print("call_rt_r5"); 257 Print("call_rt_redirected");
258 return;
259 case call_rt_r2:
260 Print("call_rt_r2");
261 return; 258 return;
262 case break_point: 259 case break_point:
263 Print("break_point"); 260 Print("break_point");
264 return; 261 return;
265 case simulator_fp_add:
266 Print("simulator_fp_add");
267 return;
268 case simulator_fp_mul:
269 Print("simulator_fp_mul");
270 return;
271 case simulator_fp_sub:
272 Print("simulator_fp_sub");
273 return;
274 default: 262 default:
275 out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_, 263 out_buffer_pos_ += v8i::OS::SNPrintF(out_buffer_ + out_buffer_pos_,
276 "%d", 264 "%d",
277 swi); 265 swi);
278 return; 266 return;
279 } 267 }
280 } 268 }
281 269
282 270
283 // Handle all register based formatting in this function to reduce the 271 // Handle all register based formatting in this function to reduce the
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 buffer[0] = '\0'; 880 buffer[0] = '\0';
893 byte* prev_pc = pc; 881 byte* prev_pc = pc;
894 pc += d.InstructionDecode(buffer, pc); 882 pc += d.InstructionDecode(buffer, pc);
895 fprintf(f, "%p %08x %s\n", 883 fprintf(f, "%p %08x %s\n",
896 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 884 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
897 } 885 }
898 } 886 }
899 887
900 888
901 } // namespace disasm 889 } // namespace disasm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698