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