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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 return date_cache_; | 940 return date_cache_; |
941 } | 941 } |
942 | 942 |
943 void set_date_cache(DateCache* date_cache) { | 943 void set_date_cache(DateCache* date_cache) { |
944 if (date_cache != date_cache_) { | 944 if (date_cache != date_cache_) { |
945 delete date_cache_; | 945 delete date_cache_; |
946 } | 946 } |
947 date_cache_ = date_cache; | 947 date_cache_ = date_cache; |
948 } | 948 } |
949 | 949 |
950 ErrorToStringHelper* error_tostring_helper() { | |
951 return &error_tostring_helper_; | |
952 } | |
953 | |
954 Map* get_initial_js_array_map(ElementsKind kind, | 950 Map* get_initial_js_array_map(ElementsKind kind, |
955 Strength strength = Strength::WEAK); | 951 Strength strength = Strength::WEAK); |
956 | 952 |
957 static const int kArrayProtectorValid = 1; | 953 static const int kArrayProtectorValid = 1; |
958 static const int kArrayProtectorInvalid = 0; | 954 static const int kArrayProtectorInvalid = 0; |
959 | 955 |
960 bool IsFastArrayConstructorPrototypeChainIntact(); | 956 bool IsFastArrayConstructorPrototypeChainIntact(); |
961 | 957 |
962 // On intent to set an element in object, make sure that appropriate | 958 // On intent to set an element in object, make sure that appropriate |
963 // notifications occur if the set is on the elements of the array or | 959 // notifications occur if the set is on the elements of the array or |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 | 1190 |
1195 // Propagate pending exception message to the v8::TryCatch. | 1191 // Propagate pending exception message to the v8::TryCatch. |
1196 // If there is no external try-catch or message was successfully propagated, | 1192 // If there is no external try-catch or message was successfully propagated, |
1197 // then return true. | 1193 // then return true. |
1198 bool PropagatePendingExceptionToExternalTryCatch(); | 1194 bool PropagatePendingExceptionToExternalTryCatch(); |
1199 | 1195 |
1200 // Remove per-frame stored materialized objects when we are unwinding | 1196 // Remove per-frame stored materialized objects when we are unwinding |
1201 // the frame. | 1197 // the frame. |
1202 void RemoveMaterializedObjectsOnUnwind(StackFrame* frame); | 1198 void RemoveMaterializedObjectsOnUnwind(StackFrame* frame); |
1203 | 1199 |
1204 // Traverse prototype chain to find out whether the object is derived from | |
1205 // the Error object. | |
1206 bool IsErrorObject(Handle<Object> obj); | |
1207 | |
1208 base::Atomic32 id_; | 1200 base::Atomic32 id_; |
1209 EntryStackItem* entry_stack_; | 1201 EntryStackItem* entry_stack_; |
1210 int stack_trace_nesting_level_; | 1202 int stack_trace_nesting_level_; |
1211 StringStream* incomplete_message_; | 1203 StringStream* incomplete_message_; |
1212 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1204 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
1213 Bootstrapper* bootstrapper_; | 1205 Bootstrapper* bootstrapper_; |
1214 RuntimeProfiler* runtime_profiler_; | 1206 RuntimeProfiler* runtime_profiler_; |
1215 CompilationCache* compilation_cache_; | 1207 CompilationCache* compilation_cache_; |
1216 Counters* counters_; | 1208 Counters* counters_; |
1217 CodeRange* code_range_; | 1209 CodeRange* code_range_; |
(...skipping 24 matching lines...) Expand all Loading... |
1242 ThreadManager* thread_manager_; | 1234 ThreadManager* thread_manager_; |
1243 RuntimeState runtime_state_; | 1235 RuntimeState runtime_state_; |
1244 Builtins builtins_; | 1236 Builtins builtins_; |
1245 bool has_installed_extensions_; | 1237 bool has_installed_extensions_; |
1246 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; | 1238 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; |
1247 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; | 1239 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; |
1248 unibrow::Mapping<unibrow::Ecma262Canonicalize> | 1240 unibrow::Mapping<unibrow::Ecma262Canonicalize> |
1249 regexp_macro_assembler_canonicalize_; | 1241 regexp_macro_assembler_canonicalize_; |
1250 RegExpStack* regexp_stack_; | 1242 RegExpStack* regexp_stack_; |
1251 DateCache* date_cache_; | 1243 DateCache* date_cache_; |
1252 ErrorToStringHelper error_tostring_helper_; | |
1253 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 1244 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |
1254 CallInterfaceDescriptorData* call_descriptor_data_; | 1245 CallInterfaceDescriptorData* call_descriptor_data_; |
1255 base::RandomNumberGenerator* random_number_generator_; | 1246 base::RandomNumberGenerator* random_number_generator_; |
1256 | 1247 |
1257 // Whether the isolate has been created for snapshotting. | 1248 // Whether the isolate has been created for snapshotting. |
1258 bool serializer_enabled_; | 1249 bool serializer_enabled_; |
1259 | 1250 |
1260 // True if fatal error has been signaled for this isolate. | 1251 // True if fatal error has been signaled for this isolate. |
1261 bool has_fatal_error_; | 1252 bool has_fatal_error_; |
1262 | 1253 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 | 1551 |
1561 EmbeddedVector<char, 128> filename_; | 1552 EmbeddedVector<char, 128> filename_; |
1562 FILE* file_; | 1553 FILE* file_; |
1563 int scope_depth_; | 1554 int scope_depth_; |
1564 }; | 1555 }; |
1565 | 1556 |
1566 } // namespace internal | 1557 } // namespace internal |
1567 } // namespace v8 | 1558 } // namespace v8 |
1568 | 1559 |
1569 #endif // V8_ISOLATE_H_ | 1560 #endif // V8_ISOLATE_H_ |
OLD | NEW |