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

Unified Diff: src/v8utils.h

Issue 13704002: Minor Native Client specific changes to files in src. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Cleaner disabling of profiling. Created 7 years, 8 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
« no previous file with comments | « src/platform-posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8utils.h
diff --git a/src/v8utils.h b/src/v8utils.h
index b5c8f084e02b95785e177846b70e8c4c9fe97612..0dbd60e21448d21712501007b7103aebb7b5d083 100644
--- a/src/v8utils.h
+++ b/src/v8utils.h
@@ -185,6 +185,13 @@ inline void MemsetPointer(T** dest, U* value, int counter) {
#elif defined(V8_HOST_ARCH_X64)
#define STOS "stosq"
#endif
+#if defined(__native_client__)
+ // This STOS sequence does not validate for x86_64 Native Client.
+ // Here we #undef STOS to force use of the slower C version.
+ // TODO(bradchen): Profile V8 and implement a faster REP STOS
+ // here if the profile indicates it matters.
+#undef STOS
+#endif
#if defined(__GNUC__) && defined(STOS)
asm volatile(
« no previous file with comments | « src/platform-posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698