| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 void TearDown(); | 424 void TearDown(); |
| 425 | 425 |
| 426 bool IsDefaultIsolate() const { return this == default_isolate_; } | 426 bool IsDefaultIsolate() const { return this == default_isolate_; } |
| 427 | 427 |
| 428 // Ensures that process-wide resources and the default isolate have been | 428 // Ensures that process-wide resources and the default isolate have been |
| 429 // allocated. It is only necessary to call this method in rare casses, for | 429 // allocated. It is only necessary to call this method in rare casses, for |
| 430 // example if you are using V8 from within the body of a static initializer. | 430 // example if you are using V8 from within the body of a static initializer. |
| 431 // Safe to call multiple times. | 431 // Safe to call multiple times. |
| 432 static void EnsureDefaultIsolate(); | 432 static void EnsureDefaultIsolate(); |
| 433 | 433 |
| 434 // Get the debugger from the default isolate. Preinitializes the |
| 435 // default isolate if needed. |
| 436 static Debugger* GetDefaultIsolateDebugger(); |
| 437 |
| 438 // Get the stack guard from the default isolate. Preinitializes the |
| 439 // default isolate if needed. |
| 440 static StackGuard* GetDefaultIsolateStackGuard(); |
| 441 |
| 434 // Returns the key used to store the pointer to the current isolate. | 442 // Returns the key used to store the pointer to the current isolate. |
| 435 // Used internally for V8 threads that do not execute JavaScript but still | 443 // Used internally for V8 threads that do not execute JavaScript but still |
| 436 // are part of the domain of an isolate (like the context switcher). | 444 // are part of the domain of an isolate (like the context switcher). |
| 437 static Thread::LocalStorageKey isolate_key() { | 445 static Thread::LocalStorageKey isolate_key() { |
| 438 return isolate_key_; | 446 return isolate_key_; |
| 439 } | 447 } |
| 440 | 448 |
| 441 // Returns the key used to store process-wide thread IDs. | 449 // Returns the key used to store process-wide thread IDs. |
| 442 static Thread::LocalStorageKey thread_id_key() { | 450 static Thread::LocalStorageKey thread_id_key() { |
| 443 return thread_id_key_; | 451 return thread_id_key_; |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 | 1294 |
| 1287 } } // namespace v8::internal | 1295 } } // namespace v8::internal |
| 1288 | 1296 |
| 1289 // TODO(isolates): Get rid of these -inl.h includes and place them only where | 1297 // TODO(isolates): Get rid of these -inl.h includes and place them only where |
| 1290 // they're needed. | 1298 // they're needed. |
| 1291 #include "allocation-inl.h" | 1299 #include "allocation-inl.h" |
| 1292 #include "zone-inl.h" | 1300 #include "zone-inl.h" |
| 1293 #include "frames-inl.h" | 1301 #include "frames-inl.h" |
| 1294 | 1302 |
| 1295 #endif // V8_ISOLATE_H_ | 1303 #endif // V8_ISOLATE_H_ |
| OLD | NEW |