Backed out changeset 2b2f69d46d30 (bug 975182) for SM(arm) failures.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2014-02-21 13:32:16 -05:00
Родитель 48b6a8baea
Коммит 19f8efe4ed
2 изменённых файлов: 2 добавлений и 20 удалений

Просмотреть файл

@ -1,18 +0,0 @@
Function("\
g = (function(t,foreign){\
\"use asm\";\
var ff = foreign.ff;\
function f() {\
+ff()\
}\
return f\
})(this, {\
ff: arguments.callee\
}, ArrayBuffer(4096))\
")()
function m(f) {
for (var j = 0; j < 6000; ++j) {
f();
}
}
m(g);

Просмотреть файл

@ -1031,10 +1031,10 @@ js::TriggerOperationCallbackForAsmJSCode(JSRuntime *rt)
#if defined(XP_WIN)
DWORD oldProtect;
if (!VirtualProtect(module.codeBase(), module.functionBytes(), PAGE_READWRITE, &oldProtect))
if (!VirtualProtect(module.codeBase(), module.functionBytes(), PAGE_NOACCESS, &oldProtect))
MOZ_CRASH();
#else // assume Unix
if (mprotect(module.codeBase(), module.functionBytes(), PROT_READ|PROT_WRITE))
if (mprotect(module.codeBase(), module.functionBytes(), PROT_NONE))
MOZ_CRASH();
#endif
}