| 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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 void SetData(void* data) { embedder_data_ = data; } | 1052 void SetData(void* data) { embedder_data_ = data; } |
| 1053 void* GetData() { return embedder_data_; } | 1053 void* GetData() { return embedder_data_; } |
| 1054 | 1054 |
| 1055 LookupResult* top_lookup_result() { | 1055 LookupResult* top_lookup_result() { |
| 1056 return thread_local_top_.top_lookup_result_; | 1056 return thread_local_top_.top_lookup_result_; |
| 1057 } | 1057 } |
| 1058 void SetTopLookupResult(LookupResult* top) { | 1058 void SetTopLookupResult(LookupResult* top) { |
| 1059 thread_local_top_.top_lookup_result_ = top; | 1059 thread_local_top_.top_lookup_result_ = top; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 bool IsDead() { return has_fatal_error_; } |
| 1063 void SignalFatalError() { has_fatal_error_ = true; } |
| 1064 |
| 1062 bool use_crankshaft() { return use_crankshaft_; } | 1065 bool use_crankshaft() { return use_crankshaft_; } |
| 1063 | 1066 |
| 1064 bool initialized_from_snapshot() { return initialized_from_snapshot_; } | 1067 bool initialized_from_snapshot() { return initialized_from_snapshot_; } |
| 1065 | 1068 |
| 1066 double time_millis_since_init() { | 1069 double time_millis_since_init() { |
| 1067 return OS::TimeCurrentMillis() - time_millis_at_init_; | 1070 return OS::TimeCurrentMillis() - time_millis_at_init_; |
| 1068 } | 1071 } |
| 1069 | 1072 |
| 1070 DateCache* date_cache() { | 1073 DateCache* date_cache() { |
| 1071 return date_cache_; | 1074 return date_cache_; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 ConsStringIteratorOp objects_string_compare_iterator_a_; | 1298 ConsStringIteratorOp objects_string_compare_iterator_a_; |
| 1296 ConsStringIteratorOp objects_string_compare_iterator_b_; | 1299 ConsStringIteratorOp objects_string_compare_iterator_b_; |
| 1297 StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 1300 StaticResource<ConsStringIteratorOp> objects_string_iterator_; |
| 1298 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1301 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
| 1299 regexp_macro_assembler_canonicalize_; | 1302 regexp_macro_assembler_canonicalize_; |
| 1300 RegExpStack* regexp_stack_; | 1303 RegExpStack* regexp_stack_; |
| 1301 DateCache* date_cache_; | 1304 DateCache* date_cache_; |
| 1302 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1305 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
| 1303 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 1306 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
| 1304 | 1307 |
| 1308 // True if fatal error has been signaled for this isolate. |
| 1309 bool has_fatal_error_; |
| 1310 |
| 1305 // True if we are using the Crankshaft optimizing compiler. | 1311 // True if we are using the Crankshaft optimizing compiler. |
| 1306 bool use_crankshaft_; | 1312 bool use_crankshaft_; |
| 1307 | 1313 |
| 1308 // True if this isolate was initialized from a snapshot. | 1314 // True if this isolate was initialized from a snapshot. |
| 1309 bool initialized_from_snapshot_; | 1315 bool initialized_from_snapshot_; |
| 1310 | 1316 |
| 1311 // Time stamp at initialization. | 1317 // Time stamp at initialization. |
| 1312 double time_millis_at_init_; | 1318 double time_millis_at_init_; |
| 1313 | 1319 |
| 1314 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ | 1320 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 | 1531 |
| 1526 // Mark the native context with out of memory. | 1532 // Mark the native context with out of memory. |
| 1527 inline void Context::mark_out_of_memory() { | 1533 inline void Context::mark_out_of_memory() { |
| 1528 native_context()->set_out_of_memory(HEAP->true_value()); | 1534 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1529 } | 1535 } |
| 1530 | 1536 |
| 1531 | 1537 |
| 1532 } } // namespace v8::internal | 1538 } } // namespace v8::internal |
| 1533 | 1539 |
| 1534 #endif // V8_ISOLATE_H_ | 1540 #endif // V8_ISOLATE_H_ |
| OLD | NEW |