| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 27 matching lines...) Expand all Loading... |
| 38 namespace v8 { | 38 namespace v8 { |
| 39 namespace internal { | 39 namespace internal { |
| 40 | 40 |
| 41 class Bootstrapper; | 41 class Bootstrapper; |
| 42 class ContextSlotCache; | 42 class ContextSlotCache; |
| 43 class CpuFeatures; | 43 class CpuFeatures; |
| 44 class Deserializer; | 44 class Deserializer; |
| 45 class HandleScopeImplementer; | 45 class HandleScopeImplementer; |
| 46 class SaveContext; | 46 class SaveContext; |
| 47 class StubCache; | 47 class StubCache; |
| 48 class ScannerCharacterClasses; |
| 48 | 49 |
| 49 class ThreadLocalTop BASE_EMBEDDED { | 50 class ThreadLocalTop BASE_EMBEDDED { |
| 50 public: | 51 public: |
| 51 // Initialize the thread data. | 52 // Initialize the thread data. |
| 52 void Initialize(); | 53 void Initialize(); |
| 53 | 54 |
| 54 // Get the top C++ try catch handler or NULL if none are registered. | 55 // Get the top C++ try catch handler or NULL if none are registered. |
| 55 // | 56 // |
| 56 // This method is not guarenteed to return an address that can be | 57 // This method is not guarenteed to return an address that can be |
| 57 // used for comparison with addresses into the JS stack. If such an | 58 // used for comparison with addresses into the JS stack. If such an |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 218 |
| 218 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { | 219 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { |
| 219 return &handle_scope_data_; | 220 return &handle_scope_data_; |
| 220 } | 221 } |
| 221 HandleScopeImplementer* handle_scope_implementer() { | 222 HandleScopeImplementer* handle_scope_implementer() { |
| 222 ASSERT(handle_scope_implementer_); | 223 ASSERT(handle_scope_implementer_); |
| 223 return handle_scope_implementer_; | 224 return handle_scope_implementer_; |
| 224 } | 225 } |
| 225 Zone* zone() { return &zone_; } | 226 Zone* zone() { return &zone_; } |
| 226 | 227 |
| 228 ScannerCharacterClasses* scanner_character_classes() { |
| 229 return scanner_character_classes_; |
| 230 } |
| 231 |
| 227 // SerializerDeserializer state. | 232 // SerializerDeserializer state. |
| 228 static const int kPartialSnapshotCacheCapacity = 1300; | 233 static const int kPartialSnapshotCacheCapacity = 1300; |
| 229 | 234 |
| 230 static int number_of_isolates() { return number_of_isolates_; } | 235 static int number_of_isolates() { return number_of_isolates_; } |
| 231 | 236 |
| 232 private: | 237 private: |
| 233 Isolate(); | 238 Isolate(); |
| 234 | 239 |
| 235 #ifdef V8_USE_TLS_FOR_GLOBAL_ISOLATE | 240 #ifdef V8_USE_TLS_FOR_GLOBAL_ISOLATE |
| 236 static Thread::LocalStorageKey global_isolate_key_; | 241 static Thread::LocalStorageKey global_isolate_key_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 261 Heap heap_; | 266 Heap heap_; |
| 262 StackGuard stack_guard_; | 267 StackGuard stack_guard_; |
| 263 StubCache* stub_cache_; | 268 StubCache* stub_cache_; |
| 264 ThreadLocalTop thread_local_top_; | 269 ThreadLocalTop thread_local_top_; |
| 265 TranscendentalCache* transcendental_cache_; | 270 TranscendentalCache* transcendental_cache_; |
| 266 KeyedLookupCache* keyed_lookup_cache_; | 271 KeyedLookupCache* keyed_lookup_cache_; |
| 267 ContextSlotCache* context_slot_cache_; | 272 ContextSlotCache* context_slot_cache_; |
| 268 DescriptorLookupCache* descriptor_lookup_cache_; | 273 DescriptorLookupCache* descriptor_lookup_cache_; |
| 269 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; | 274 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; |
| 270 HandleScopeImplementer* handle_scope_implementer_; | 275 HandleScopeImplementer* handle_scope_implementer_; |
| 276 ScannerCharacterClasses* scanner_character_classes_; |
| 271 Zone zone_; | 277 Zone zone_; |
| 272 | 278 |
| 273 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 279 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
| 274 type name##_; | 280 type name##_; |
| 275 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 281 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
| 276 #undef GLOBAL_BACKING_STORE | 282 #undef GLOBAL_BACKING_STORE |
| 277 | 283 |
| 278 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ | 284 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ |
| 279 type name##_[length]; | 285 type name##_[length]; |
| 280 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_BACKING_STORE) | 286 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_BACKING_STORE) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 344 |
| 339 | 345 |
| 340 // Temporary macro to be used to flag classes that are completely converted | 346 // Temporary macro to be used to flag classes that are completely converted |
| 341 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is | 347 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is |
| 342 // correct. | 348 // correct. |
| 343 #define ISOLATED_CLASS class | 349 #define ISOLATED_CLASS class |
| 344 | 350 |
| 345 } } // namespace v8::internal | 351 } } // namespace v8::internal |
| 346 | 352 |
| 347 #endif // V8_ISOLATE_H_ | 353 #endif // V8_ISOLATE_H_ |
| OLD | NEW |