OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 | 1103 |
1104 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1104 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
1105 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1105 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
1106 | 1106 |
1107 std::string GetTurboCfgFileName(); | 1107 std::string GetTurboCfgFileName(); |
1108 | 1108 |
1109 #if TRACE_MAPS | 1109 #if TRACE_MAPS |
1110 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } | 1110 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } |
1111 #endif | 1111 #endif |
1112 | 1112 |
1113 void set_store_buffer_hash_set_1_address( | |
1114 uintptr_t* store_buffer_hash_set_1_address) { | |
1115 store_buffer_hash_set_1_address_ = store_buffer_hash_set_1_address; | |
1116 } | |
1117 | |
1118 uintptr_t* store_buffer_hash_set_1_address() { | |
1119 return store_buffer_hash_set_1_address_; | |
1120 } | |
1121 | |
1122 void set_store_buffer_hash_set_2_address( | |
1123 uintptr_t* store_buffer_hash_set_2_address) { | |
1124 store_buffer_hash_set_2_address_ = store_buffer_hash_set_2_address; | |
1125 } | |
1126 | |
1127 uintptr_t* store_buffer_hash_set_2_address() { | |
1128 return store_buffer_hash_set_2_address_; | |
1129 } | |
1130 | 1113 |
1131 void AddDetachedContext(Handle<Context> context); | 1114 void AddDetachedContext(Handle<Context> context); |
1132 void CheckDetachedContextsAfterGC(); | 1115 void CheckDetachedContextsAfterGC(); |
1133 | 1116 |
1134 List<Object*>* partial_snapshot_cache() { return &partial_snapshot_cache_; } | 1117 List<Object*>* partial_snapshot_cache() { return &partial_snapshot_cache_; } |
1135 | 1118 |
1136 void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) { | 1119 void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) { |
1137 array_buffer_allocator_ = allocator; | 1120 array_buffer_allocator_ = allocator; |
1138 } | 1121 } |
1139 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { | 1122 v8::ArrayBuffer::Allocator* array_buffer_allocator() const { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1283 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1301 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1284 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1302 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1285 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1303 regexp_macro_assembler_canonicalize_; | 1286 regexp_macro_assembler_canonicalize_; |
1304 RegExpStack* regexp_stack_; | 1287 RegExpStack* regexp_stack_; |
1305 DateCache* date_cache_; | 1288 DateCache* date_cache_; |
1306 ErrorToStringHelper error_tostring_helper_; | 1289 ErrorToStringHelper error_tostring_helper_; |
1307 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1290 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
1308 CallInterfaceDescriptorData* call_descriptor_data_; | 1291 CallInterfaceDescriptorData* call_descriptor_data_; |
1309 base::RandomNumberGenerator* random_number_generator_; | 1292 base::RandomNumberGenerator* random_number_generator_; |
1310 // TODO(hpayer): Remove the following store buffer addresses. | |
1311 uintptr_t* store_buffer_hash_set_1_address_; | |
1312 uintptr_t* store_buffer_hash_set_2_address_; | |
1313 | 1293 |
1314 // Whether the isolate has been created for snapshotting. | 1294 // Whether the isolate has been created for snapshotting. |
1315 bool serializer_enabled_; | 1295 bool serializer_enabled_; |
1316 | 1296 |
1317 // True if fatal error has been signaled for this isolate. | 1297 // True if fatal error has been signaled for this isolate. |
1318 bool has_fatal_error_; | 1298 bool has_fatal_error_; |
1319 | 1299 |
1320 // True if this isolate was initialized from a snapshot. | 1300 // True if this isolate was initialized from a snapshot. |
1321 bool initialized_from_snapshot_; | 1301 bool initialized_from_snapshot_; |
1322 | 1302 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 } | 1587 } |
1608 | 1588 |
1609 EmbeddedVector<char, 128> filename_; | 1589 EmbeddedVector<char, 128> filename_; |
1610 FILE* file_; | 1590 FILE* file_; |
1611 int scope_depth_; | 1591 int scope_depth_; |
1612 }; | 1592 }; |
1613 | 1593 |
1614 } } // namespace v8::internal | 1594 } } // namespace v8::internal |
1615 | 1595 |
1616 #endif // V8_ISOLATE_H_ | 1596 #endif // V8_ISOLATE_H_ |
OLD | NEW |