| 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 void SetData(void* data) { embedder_data_ = data; } | 1050 void SetData(void* data) { embedder_data_ = data; } |
| 1051 void* GetData() { return embedder_data_; } | 1051 void* GetData() { return embedder_data_; } |
| 1052 | 1052 |
| 1053 LookupResult* top_lookup_result() { | 1053 LookupResult* top_lookup_result() { |
| 1054 return thread_local_top_.top_lookup_result_; | 1054 return thread_local_top_.top_lookup_result_; |
| 1055 } | 1055 } |
| 1056 void SetTopLookupResult(LookupResult* top) { | 1056 void SetTopLookupResult(LookupResult* top) { |
| 1057 thread_local_top_.top_lookup_result_ = top; | 1057 thread_local_top_.top_lookup_result_ = top; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 bool context_exit_happened() { | |
| 1061 return context_exit_happened_; | |
| 1062 } | |
| 1063 void set_context_exit_happened(bool context_exit_happened) { | |
| 1064 context_exit_happened_ = context_exit_happened; | |
| 1065 } | |
| 1066 | |
| 1067 bool initialized_from_snapshot() { return initialized_from_snapshot_; } | 1060 bool initialized_from_snapshot() { return initialized_from_snapshot_; } |
| 1068 | 1061 |
| 1069 double time_millis_since_init() { | 1062 double time_millis_since_init() { |
| 1070 return OS::TimeCurrentMillis() - time_millis_at_init_; | 1063 return OS::TimeCurrentMillis() - time_millis_at_init_; |
| 1071 } | 1064 } |
| 1072 | 1065 |
| 1073 DateCache* date_cache() { | 1066 DateCache* date_cache() { |
| 1074 return date_cache_; | 1067 return date_cache_; |
| 1075 } | 1068 } |
| 1076 | 1069 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 ConsStringIteratorOp objects_string_compare_iterator_a_; | 1297 ConsStringIteratorOp objects_string_compare_iterator_a_; |
| 1305 ConsStringIteratorOp objects_string_compare_iterator_b_; | 1298 ConsStringIteratorOp objects_string_compare_iterator_b_; |
| 1306 StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 1299 StaticResource<ConsStringIteratorOp> objects_string_iterator_; |
| 1307 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1300 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
| 1308 regexp_macro_assembler_canonicalize_; | 1301 regexp_macro_assembler_canonicalize_; |
| 1309 RegExpStack* regexp_stack_; | 1302 RegExpStack* regexp_stack_; |
| 1310 DateCache* date_cache_; | 1303 DateCache* date_cache_; |
| 1311 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1304 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
| 1312 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 1305 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
| 1313 | 1306 |
| 1314 // The garbage collector should be a little more aggressive when it knows | |
| 1315 // that a context was recently exited. | |
| 1316 bool context_exit_happened_; | |
| 1317 | |
| 1318 // True if this isolate was initialized from a snapshot. | 1307 // True if this isolate was initialized from a snapshot. |
| 1319 bool initialized_from_snapshot_; | 1308 bool initialized_from_snapshot_; |
| 1320 | 1309 |
| 1321 // Time stamp at initialization. | 1310 // Time stamp at initialization. |
| 1322 double time_millis_at_init_; | 1311 double time_millis_at_init_; |
| 1323 | 1312 |
| 1324 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ | 1313 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ |
| 1325 V8_TARGET_ARCH_MIPS && !defined(__mips__) | 1314 V8_TARGET_ARCH_MIPS && !defined(__mips__) |
| 1326 bool simulator_initialized_; | 1315 bool simulator_initialized_; |
| 1327 HashMap* simulator_i_cache_; | 1316 HashMap* simulator_i_cache_; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 | 1510 |
| 1522 // Mark the native context with out of memory. | 1511 // Mark the native context with out of memory. |
| 1523 inline void Context::mark_out_of_memory() { | 1512 inline void Context::mark_out_of_memory() { |
| 1524 native_context()->set_out_of_memory(HEAP->true_value()); | 1513 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1525 } | 1514 } |
| 1526 | 1515 |
| 1527 | 1516 |
| 1528 } } // namespace v8::internal | 1517 } } // namespace v8::internal |
| 1529 | 1518 |
| 1530 #endif // V8_ISOLATE_H_ | 1519 #endif // V8_ISOLATE_H_ |
| OLD | NEW |