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

Unified Diff: src/code-stubs.h

Issue 11275184: First draft of the sh4 port Base URL: http://github.com/v8/v8.git@master
Patch Set: Use GYP and fixe some typos Created 8 years, 1 month 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
« no previous file with comments | « src/atomicops_internals_sh4_gcc.h ('k') | src/codegen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index a843841723cb2102b9787cacc5a24013538eaa60..cf27ea256b59bfe1abf76dfe4fe87dbfd65f3c68 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -97,11 +97,21 @@ namespace internal {
#define CODE_STUB_LIST_MIPS(V)
#endif
+// List of code stubs only used on SH4 platforms
+#ifdef V8_TARGET_ARCH_SH4
+# define CODE_STUB_LIST_SH4(V) \
+ V(RegExpCEntry) \
+ V(DirectCEntry)
+#else
+#define CODE_STUB_LIST_SH4(V)
+#endif
+
// Combined list of code stubs.
#define CODE_STUB_LIST(V) \
CODE_STUB_LIST_ALL_PLATFORMS(V) \
CODE_STUB_LIST_ARM(V) \
- CODE_STUB_LIST_MIPS(V)
+ CODE_STUB_LIST_MIPS(V) \
+ CODE_STUB_LIST_SH4(V)
// Mode to overwrite BinaryExpression values.
enum OverwriteMode { NO_OVERWRITE, OVERWRITE_LEFT, OVERWRITE_RIGHT };
@@ -256,6 +266,8 @@ class RuntimeCallHelper {
#include "arm/code-stubs-arm.h"
#elif V8_TARGET_ARCH_MIPS
#include "mips/code-stubs-mips.h"
+#elif V8_TARGET_ARCH_SH4
+#include "sh4/code-stubs-sh4.h"
#else
#error Unsupported target architecture.
#endif
« no previous file with comments | « src/atomicops_internals_sh4_gcc.h ('k') | src/codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698