Chromium Code Reviews| Index: src/isolate.h |
| diff --git a/src/isolate.h b/src/isolate.h |
| index c0083177373e0afcd5f899cb92d46e236936dd59..b80f46c3fc54d8a991a88896706a4250f553290d 100644 |
| --- a/src/isolate.h |
| +++ b/src/isolate.h |
| @@ -1138,6 +1138,13 @@ class Isolate { |
| // Given an address occupied by a live code object, return that object. |
| Object* FindCodeObject(Address a); |
| + bool isMemoryConstrained() { |
|
tfarina
2013/09/03 19:39:18
I believe this should be is_memory_constrained()
Sven Panne
2013/09/04 07:25:45
... and should be const.
rmcilroy
2013/09/04 10:22:06
Done.
|
| + return is_memory_constrained_; |
| + } |
| + void setIsMemoryConstrained(bool value) { |
|
tfarina
2013/09/03 19:39:18
set_is_memory_constrained
rmcilroy
2013/09/04 10:22:06
Done.
|
| + is_memory_constrained_ = value; |
| + } |
| + |
| private: |
| Isolate(); |
| @@ -1313,6 +1320,7 @@ class Isolate { |
| DateCache* date_cache_; |
| unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
| CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
| + bool is_memory_constrained_; |
| // The garbage collector should be a little more aggressive when it knows |
| // that a context was recently exited. |