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