Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 1f3361c93f5307e4f375c0e705ebc67329cd1d99..9111a1d3f9d00f66b64c3954f9e1508760a918c2 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -288,9 +288,6 @@ class ThreadLocalTop BASE_EMBEDDED { |
// Head of the list of live LookupResults. |
LookupResult* top_lookup_result_; |
- // Whether out of memory exceptions should be ignored. |
- bool ignore_out_of_memory_; |
- |
private: |
void InitializeInternal(); |
@@ -641,8 +638,7 @@ class Isolate { |
bool IsExternallyCaught(); |
bool is_catchable_by_javascript(MaybeObject* exception) { |
- return (!exception->IsOutOfMemory()) && |
- (exception != heap()->termination_exception()); |
+ return exception != heap()->termination_exception(); |
} |
// Serializer. |
@@ -721,12 +717,6 @@ class Isolate { |
int frame_limit, |
StackTrace::StackTraceOptions options); |
- // Tells whether the current context has experienced an out of memory |
- // exception. |
- bool is_out_of_memory(); |
- |
- THREAD_LOCAL_TOP_ACCESSOR(bool, ignore_out_of_memory) |
- |
void PrintCurrentStackTrace(FILE* out); |
void PrintStack(StringStream* accumulator); |
void PrintStack(FILE* out); |
@@ -1475,17 +1465,6 @@ class PostponeInterruptsScope BASE_EMBEDDED { |
}; |
-// Tells whether the native context is marked with out of memory. |
-inline bool Context::has_out_of_memory() { |
- return native_context()->out_of_memory()->IsTrue(); |
-} |
- |
- |
-// Mark the native context with out of memory. |
-inline void Context::mark_out_of_memory() { |
- native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); |
-} |
- |
class CodeTracer V8_FINAL : public Malloced { |
public: |
explicit CodeTracer(int isolate_id) |