Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1131 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1131 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
| 1132 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1132 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
| 1133 function_entry_hook_ = function_entry_hook; | 1133 function_entry_hook_ = function_entry_hook; |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1136 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
| 1137 | 1137 |
| 1138 // Given an address occupied by a live code object, return that object. | 1138 // Given an address occupied by a live code object, return that object. |
| 1139 Object* FindCodeObject(Address a); | 1139 Object* FindCodeObject(Address a); |
| 1140 | 1140 |
| 1141 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.
| |
| 1142 return is_memory_constrained_; | |
| 1143 } | |
| 1144 void setIsMemoryConstrained(bool value) { | |
|
tfarina
2013/09/03 19:39:18
set_is_memory_constrained
rmcilroy
2013/09/04 10:22:06
Done.
| |
| 1145 is_memory_constrained_ = value; | |
| 1146 } | |
| 1147 | |
| 1141 private: | 1148 private: |
| 1142 Isolate(); | 1149 Isolate(); |
| 1143 | 1150 |
| 1144 friend struct GlobalState; | 1151 friend struct GlobalState; |
| 1145 friend struct InitializeGlobalState; | 1152 friend struct InitializeGlobalState; |
| 1146 | 1153 |
| 1147 enum State { | 1154 enum State { |
| 1148 UNINITIALIZED, // Some components may not have been allocated. | 1155 UNINITIALIZED, // Some components may not have been allocated. |
| 1149 INITIALIZED // All components are fully initialized. | 1156 INITIALIZED // All components are fully initialized. |
| 1150 }; | 1157 }; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1306 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1313 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
| 1307 ConsStringIteratorOp objects_string_compare_iterator_a_; | 1314 ConsStringIteratorOp objects_string_compare_iterator_a_; |
| 1308 ConsStringIteratorOp objects_string_compare_iterator_b_; | 1315 ConsStringIteratorOp objects_string_compare_iterator_b_; |
| 1309 StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 1316 StaticResource<ConsStringIteratorOp> objects_string_iterator_; |
| 1310 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1317 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
| 1311 regexp_macro_assembler_canonicalize_; | 1318 regexp_macro_assembler_canonicalize_; |
| 1312 RegExpStack* regexp_stack_; | 1319 RegExpStack* regexp_stack_; |
| 1313 DateCache* date_cache_; | 1320 DateCache* date_cache_; |
| 1314 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1321 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
| 1315 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 1322 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
| 1323 bool is_memory_constrained_; | |
| 1316 | 1324 |
| 1317 // The garbage collector should be a little more aggressive when it knows | 1325 // The garbage collector should be a little more aggressive when it knows |
| 1318 // that a context was recently exited. | 1326 // that a context was recently exited. |
| 1319 bool context_exit_happened_; | 1327 bool context_exit_happened_; |
| 1320 | 1328 |
| 1321 // True if this isolate was initialized from a snapshot. | 1329 // True if this isolate was initialized from a snapshot. |
| 1322 bool initialized_from_snapshot_; | 1330 bool initialized_from_snapshot_; |
| 1323 | 1331 |
| 1324 // Time stamp at initialization. | 1332 // Time stamp at initialization. |
| 1325 double time_millis_at_init_; | 1333 double time_millis_at_init_; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1524 | 1532 |
| 1525 // Mark the native context with out of memory. | 1533 // Mark the native context with out of memory. |
| 1526 inline void Context::mark_out_of_memory() { | 1534 inline void Context::mark_out_of_memory() { |
| 1527 native_context()->set_out_of_memory(HEAP->true_value()); | 1535 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1528 } | 1536 } |
| 1529 | 1537 |
| 1530 | 1538 |
| 1531 } } // namespace v8::internal | 1539 } } // namespace v8::internal |
| 1532 | 1540 |
| 1533 #endif // V8_ISOLATE_H_ | 1541 #endif // V8_ISOLATE_H_ |
| OLD | NEW |