| 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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 function_entry_hook_ = function_entry_hook; | 1124 function_entry_hook_ = function_entry_hook; |
| 1125 } | 1125 } |
| 1126 | 1126 |
| 1127 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1127 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
| 1128 | 1128 |
| 1129 inline RandomNumberGenerator* random_number_generator(); | 1129 inline RandomNumberGenerator* random_number_generator(); |
| 1130 | 1130 |
| 1131 // Given an address occupied by a live code object, return that object. | 1131 // Given an address occupied by a live code object, return that object. |
| 1132 Object* FindCodeObject(Address a); | 1132 Object* FindCodeObject(Address a); |
| 1133 | 1133 |
| 1134 bool is_memory_constrained() const { | |
| 1135 return is_memory_constrained_; | |
| 1136 } | |
| 1137 void set_is_memory_constrained(bool value) { | |
| 1138 is_memory_constrained_ = value; | |
| 1139 } | |
| 1140 | |
| 1141 private: | 1134 private: |
| 1142 Isolate(); | 1135 Isolate(); |
| 1143 | 1136 |
| 1144 friend struct GlobalState; | 1137 friend struct GlobalState; |
| 1145 friend struct InitializeGlobalState; | 1138 friend struct InitializeGlobalState; |
| 1146 | 1139 |
| 1147 enum State { | 1140 enum State { |
| 1148 UNINITIALIZED, // Some components may not have been allocated. | 1141 UNINITIALIZED, // Some components may not have been allocated. |
| 1149 INITIALIZED // All components are fully initialized. | 1142 INITIALIZED // All components are fully initialized. |
| 1150 }; | 1143 }; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1303 ConsStringIteratorOp objects_string_compare_iterator_a_; | 1296 ConsStringIteratorOp objects_string_compare_iterator_a_; |
| 1304 ConsStringIteratorOp objects_string_compare_iterator_b_; | 1297 ConsStringIteratorOp objects_string_compare_iterator_b_; |
| 1305 StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 1298 StaticResource<ConsStringIteratorOp> objects_string_iterator_; |
| 1306 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1299 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
| 1307 regexp_macro_assembler_canonicalize_; | 1300 regexp_macro_assembler_canonicalize_; |
| 1308 RegExpStack* regexp_stack_; | 1301 RegExpStack* regexp_stack_; |
| 1309 DateCache* date_cache_; | 1302 DateCache* date_cache_; |
| 1310 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1303 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
| 1311 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 1304 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
| 1312 RandomNumberGenerator* random_number_generator_; | 1305 RandomNumberGenerator* random_number_generator_; |
| 1313 bool is_memory_constrained_; | |
| 1314 | 1306 |
| 1315 // True if fatal error has been signaled for this isolate. | 1307 // True if fatal error has been signaled for this isolate. |
| 1316 bool has_fatal_error_; | 1308 bool has_fatal_error_; |
| 1317 | 1309 |
| 1318 // True if we are using the Crankshaft optimizing compiler. | 1310 // True if we are using the Crankshaft optimizing compiler. |
| 1319 bool use_crankshaft_; | 1311 bool use_crankshaft_; |
| 1320 | 1312 |
| 1321 // True if this isolate was initialized from a snapshot. | 1313 // True if this isolate was initialized from a snapshot. |
| 1322 bool initialized_from_snapshot_; | 1314 bool initialized_from_snapshot_; |
| 1323 | 1315 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 | 1523 |
| 1532 // Mark the native context with out of memory. | 1524 // Mark the native context with out of memory. |
| 1533 inline void Context::mark_out_of_memory() { | 1525 inline void Context::mark_out_of_memory() { |
| 1534 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); | 1526 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); |
| 1535 } | 1527 } |
| 1536 | 1528 |
| 1537 | 1529 |
| 1538 } } // namespace v8::internal | 1530 } } // namespace v8::internal |
| 1539 | 1531 |
| 1540 #endif // V8_ISOLATE_H_ | 1532 #endif // V8_ISOLATE_H_ |
| OLD | NEW |