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 use_crankshaft() { return use_crankshaft_; } | |
Sven Panne
2013/09/03 06:35:05
Nit: const
Michael Starzinger
2013/09/03 07:30:57
Done.
| |
1063 | |
1062 bool initialized_from_snapshot() { return initialized_from_snapshot_; } | 1064 bool initialized_from_snapshot() { return initialized_from_snapshot_; } |
1063 | 1065 |
1064 double time_millis_since_init() { | 1066 double time_millis_since_init() { |
1065 return OS::TimeCurrentMillis() - time_millis_at_init_; | 1067 return OS::TimeCurrentMillis() - time_millis_at_init_; |
1066 } | 1068 } |
1067 | 1069 |
1068 DateCache* date_cache() { | 1070 DateCache* date_cache() { |
1069 return date_cache_; | 1071 return date_cache_; |
1070 } | 1072 } |
1071 | 1073 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1293 ConsStringIteratorOp objects_string_compare_iterator_a_; | 1295 ConsStringIteratorOp objects_string_compare_iterator_a_; |
1294 ConsStringIteratorOp objects_string_compare_iterator_b_; | 1296 ConsStringIteratorOp objects_string_compare_iterator_b_; |
1295 StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 1297 StaticResource<ConsStringIteratorOp> objects_string_iterator_; |
1296 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1298 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1297 regexp_macro_assembler_canonicalize_; | 1299 regexp_macro_assembler_canonicalize_; |
1298 RegExpStack* regexp_stack_; | 1300 RegExpStack* regexp_stack_; |
1299 DateCache* date_cache_; | 1301 DateCache* date_cache_; |
1300 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1302 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
1301 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 1303 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |
1302 | 1304 |
1305 // True if we are using the Crankshaft optimizing compiler. | |
1306 bool use_crankshaft_; | |
1307 | |
1303 // True if this isolate was initialized from a snapshot. | 1308 // True if this isolate was initialized from a snapshot. |
1304 bool initialized_from_snapshot_; | 1309 bool initialized_from_snapshot_; |
1305 | 1310 |
1306 // Time stamp at initialization. | 1311 // Time stamp at initialization. |
1307 double time_millis_at_init_; | 1312 double time_millis_at_init_; |
1308 | 1313 |
1309 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ | 1314 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ |
1310 V8_TARGET_ARCH_MIPS && !defined(__mips__) | 1315 V8_TARGET_ARCH_MIPS && !defined(__mips__) |
1311 bool simulator_initialized_; | 1316 bool simulator_initialized_; |
1312 HashMap* simulator_i_cache_; | 1317 HashMap* simulator_i_cache_; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1520 | 1525 |
1521 // Mark the native context with out of memory. | 1526 // Mark the native context with out of memory. |
1522 inline void Context::mark_out_of_memory() { | 1527 inline void Context::mark_out_of_memory() { |
1523 native_context()->set_out_of_memory(HEAP->true_value()); | 1528 native_context()->set_out_of_memory(HEAP->true_value()); |
1524 } | 1529 } |
1525 | 1530 |
1526 | 1531 |
1527 } } // namespace v8::internal | 1532 } } // namespace v8::internal |
1528 | 1533 |
1529 #endif // V8_ISOLATE_H_ | 1534 #endif // V8_ISOLATE_H_ |
OLD | NEW |