| 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 494 |
| 495 // Destroys the non-default isolates. | 495 // Destroys the non-default isolates. |
| 496 // Sets default isolate into "has_been_disposed" state rather then destroying, | 496 // Sets default isolate into "has_been_disposed" state rather then destroying, |
| 497 // for legacy API reasons. | 497 // for legacy API reasons. |
| 498 void TearDown(); | 498 void TearDown(); |
| 499 | 499 |
| 500 static void GlobalTearDown(); | 500 static void GlobalTearDown(); |
| 501 | 501 |
| 502 bool IsDefaultIsolate() const { return this == default_isolate_; } | 502 bool IsDefaultIsolate() const { return this == default_isolate_; } |
| 503 | 503 |
| 504 static void SetCrashIfDefaultIsolateInitialized(); |
| 504 // Ensures that process-wide resources and the default isolate have been | 505 // Ensures that process-wide resources and the default isolate have been |
| 505 // allocated. It is only necessary to call this method in rare cases, for | 506 // allocated. It is only necessary to call this method in rare cases, for |
| 506 // example if you are using V8 from within the body of a static initializer. | 507 // example if you are using V8 from within the body of a static initializer. |
| 507 // Safe to call multiple times. | 508 // Safe to call multiple times. |
| 508 static void EnsureDefaultIsolate(); | 509 static void EnsureDefaultIsolate(); |
| 509 | 510 |
| 510 // Find the PerThread for this particular (isolate, thread) combination | 511 // Find the PerThread for this particular (isolate, thread) combination |
| 511 // If one does not yet exist, return null. | 512 // If one does not yet exist, return null. |
| 512 PerIsolateThreadData* FindPerThreadDataForThisThread(); | 513 PerIsolateThreadData* FindPerThreadDataForThisThread(); |
| 513 | 514 |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1537 | 1538 |
| 1538 // Mark the native context with out of memory. | 1539 // Mark the native context with out of memory. |
| 1539 inline void Context::mark_out_of_memory() { | 1540 inline void Context::mark_out_of_memory() { |
| 1540 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); | 1541 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); |
| 1541 } | 1542 } |
| 1542 | 1543 |
| 1543 | 1544 |
| 1544 } } // namespace v8::internal | 1545 } } // namespace v8::internal |
| 1545 | 1546 |
| 1546 #endif // V8_ISOLATE_H_ | 1547 #endif // V8_ISOLATE_H_ |
| OLD | NEW |