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

Unified Diff: src/platform-win32.cc

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 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
« no previous file with comments | « src/platform-tls-mac.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-win32.cc
diff --git a/src/platform-win32.cc b/src/platform-win32.cc
index ab03e3d1107bf438dc68b951a2536ec43ec8afab..e23ebe5c387452bc7167b72eaf0acf357521411c 100644
--- a/src/platform-win32.cc
+++ b/src/platform-win32.cc
@@ -186,14 +186,13 @@ OS::MemCopyFunction CreateMemCopyFunction();
void OS::MemCopy(void* dest, const void* src, size_t size) {
if (memcopy_function == NULL) {
ScopedLock lock(memcopy_function_mutex);
+ Isolate::EnsureDefaultIsolate();
if (memcopy_function == NULL) {
OS::MemCopyFunction temp = CreateMemCopyFunction();
MemoryBarrier();
memcopy_function = temp;
}
}
- // Note: here we rely on dependent reads being ordered. This is true
- // on all architectures we currently support.
(*memcopy_function)(dest, src, size);
#ifdef DEBUG
CHECK_EQ(0, memcmp(dest, src, size));
@@ -211,14 +210,13 @@ ModuloFunction CreateModuloFunction();
double modulo(double x, double y) {
if (modulo_function == NULL) {
ScopedLock lock(modulo_function_mutex);
+ Isolate::EnsureDefaultIsolate();
if (modulo_function == NULL) {
ModuloFunction temp = CreateModuloFunction();
MemoryBarrier();
modulo_function = temp;
}
}
- // Note: here we rely on dependent reads being ordered. This is true
- // on all architectures we currently support.
return (*modulo_function)(x, y);
}
#else // Win32
« no previous file with comments | « src/platform-tls-mac.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698