Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index f0854e510e510c445c3a1f610ad82539d388e769..1debf4bd5d28900b0092b5edcf0fd0675a805a2a 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -1128,6 +1128,13 @@ class Isolate { |
// Given an address occupied by a live code object, return that object. |
Object* FindCodeObject(Address a); |
+ bool is_memory_constrained() const { |
+ return is_memory_constrained_; |
+ } |
+ void set_is_memory_constrained(bool value) { |
+ is_memory_constrained_ = value; |
+ } |
+ |
private: |
Isolate(); |
@@ -1299,6 +1306,7 @@ class Isolate { |
DateCache* date_cache_; |
unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
+ bool is_memory_constrained_; |
// True if fatal error has been signaled for this isolate. |
bool has_fatal_error_; |