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

Unified Diff: src/builtins.cc

Issue 13520004: [NOT FOR COMMIT] Native Client builds of V8 on ia32 and x64. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: A couple minor cleanups Created 7 years, 9 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
« src/arm/simulator-arm.cc ('K') | « src/builtins.h ('k') | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index f8d562b34b60faf4941f133a0f21460de9fbd2e4..3b79f52fe25c954b9c57af10add64826bc9e6246 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -123,6 +123,20 @@ BUILTIN_LIST_C(DEF_ARG_TYPE)
// In the body of the builtin function the arguments can be accessed
// through the BuiltinArguments object args.
+#if defined(V8_ARM_ON_X86_64)
+#define BUILTIN(name) \
+static MaybeObject* Builtin_x86_64_impl##name(name##ArgumentsType args, \
+ Isolate* isolate); \
+static MaybeObject* Builtin_##name(int arglength, Object** argobject, \
+ Isolate* isolate) { \
+ name##ArgumentsType args(arglength, argobject); \
+ return Builtin_x86_64_impl##name(args, isolate); \
+} \
+static MaybeObject* Builtin_x86_64_impl##name(name##ArgumentsType args, \
+ Isolate* isolate)
+
+#else
+
#ifdef DEBUG
#define BUILTIN(name) \
@@ -143,7 +157,7 @@ BUILTIN_LIST_C(DEF_ARG_TYPE)
static MaybeObject* Builtin_##name(name##ArgumentsType args, Isolate* isolate)
#endif
-
+#endif // defined(V8_ARM_ON_X86_64)
static inline bool CalledAsConstructor(Isolate* isolate) {
#ifdef DEBUG
« src/arm/simulator-arm.cc ('K') | « src/builtins.h ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698