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

Unified Diff: src/arm/constants-arm.h

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 side-by-side diff with in-line comments
Download patch
Index: src/arm/constants-arm.h
===================================================================
--- src/arm/constants-arm.h (revision 2053)
+++ src/arm/constants-arm.h (working copy)
@@ -28,6 +28,17 @@
#ifndef V8_ARM_CONSTANTS_ARM_H_
#define V8_ARM_CONSTANTS_ARM_H_
+// The simulator emulates the EABI so we define the __ARM_EABI__ macro if we
+// are not running on real ARM hardware. One reason for this is that the
+// old ABI uses fp registers in the calling convention and the simulator does
+// not simulate fp registers or coroutine instructions.
+#ifndef __arm__
+# ifdef __ARM_EABI__
+# undef __ARM_EABI__
+# endif
+# define __ARM_EABI__ 1
iposva 2009/06/08 21:48:41 It makes me a bit uncomfortable to be defining "co
Erik Corry 2009/06/09 09:27:00 Fixed with the introduction of USE_ARM_EABI macro
+#endif
+
namespace assembler {
namespace arm {
@@ -104,15 +115,9 @@
// simulator.
enum SoftwareInterruptCodes {
// transition to C code
- call_rt_r5 = 0x10,
- call_rt_r2 = 0x11,
+ call_rt_redirected = 0x10,
// break point
- break_point = 0x20,
- // FP operations. These simulate calling into C for a moment to do fp ops.
- // They should trash all caller-save registers.
- simulator_fp_add = 0x21,
- simulator_fp_sub = 0x22,
- simulator_fp_mul = 0x23
+ break_point = 0x20
};
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/cpu-arm.cc » ('j') | src/arm/simulator-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698