summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2015-11-04 16:14:20 +0100
committerPale Moon <git-repo@palemoon.org>2015-11-04 16:14:20 +0100
commit536efb88ae57f878089b43105d1fe9e4537a3efe (patch)
tree2bb15ea983842da014ac1678abc0bb5a2a4fff4a /js
parent124e977e734738dc3c40fb44cdf421c0b59404b3 (diff)
downloadpalemoon-gre-536efb88ae57f878089b43105d1fe9e4537a3efe.tar.gz
Don't assert when hitting OOM; let it fall through in a known incorrect situation.
Diffstat (limited to 'js')
-rw-r--r--js/src/jit/shared/CodeGenerator-shared.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/jit/shared/CodeGenerator-shared.cpp b/js/src/jit/shared/CodeGenerator-shared.cpp
index efeb86089..096cb92f8 100644
--- a/js/src/jit/shared/CodeGenerator-shared.cpp
+++ b/js/src/jit/shared/CodeGenerator-shared.cpp
@@ -397,7 +397,8 @@ CodeGeneratorShared::ensureOsiSpace()
for (int32_t i = 0; i < paddingSize; ++i)
masm.nop();
}
- JS_ASSERT(masm.currentOffset() - lastOsiPointOffset_ >= Assembler::patchWrite_NearCallSize());
+ JS_ASSERT_IF(!masm.oom(),
+ masm.currentOffset() - lastOsiPointOffset_ >= Assembler::patchWrite_NearCallSize());
lastOsiPointOffset_ = masm.currentOffset();
}