OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 thread_local_.handler_ = 0; | 95 thread_local_.handler_ = 0; |
96 thread_local_.stack_is_cooked_ = false; | 96 thread_local_.stack_is_cooked_ = false; |
97 thread_local_.try_catch_handler_ = NULL; | 97 thread_local_.try_catch_handler_ = NULL; |
98 thread_local_.context_ = NULL; | 98 thread_local_.context_ = NULL; |
99 thread_local_.external_caught_exception_ = false; | 99 thread_local_.external_caught_exception_ = false; |
100 thread_local_.failed_access_check_callback_ = NULL; | 100 thread_local_.failed_access_check_callback_ = NULL; |
101 clear_pending_exception(); | 101 clear_pending_exception(); |
102 clear_scheduled_exception(); | 102 clear_scheduled_exception(); |
103 thread_local_.save_context_ = NULL; | 103 thread_local_.save_context_ = NULL; |
104 thread_local_.catcher_ = NULL; | 104 thread_local_.catcher_ = NULL; |
| 105 thread_local_.in_potentially_direct_eval_ = false; |
105 } | 106 } |
106 | 107 |
107 | 108 |
108 // Create a dummy thread that will wait forever on a semaphore. The only | 109 // Create a dummy thread that will wait forever on a semaphore. The only |
109 // purpose for this thread is to have some stack area to save essential data | 110 // purpose for this thread is to have some stack area to save essential data |
110 // into for use by a stacks only core dump (aka minidump). | 111 // into for use by a stacks only core dump (aka minidump). |
111 class PreallocatedMemoryThread: public Thread { | 112 class PreallocatedMemoryThread: public Thread { |
112 public: | 113 public: |
113 PreallocatedMemoryThread() : keep_running_(true) { | 114 PreallocatedMemoryThread() : keep_running_(true) { |
114 wait_for_ever_semaphore_ = OS::CreateSemaphore(0); | 115 wait_for_ever_semaphore_ = OS::CreateSemaphore(0); |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 Top::break_access_->Lock(); | 918 Top::break_access_->Lock(); |
918 } | 919 } |
919 | 920 |
920 | 921 |
921 ExecutionAccess::~ExecutionAccess() { | 922 ExecutionAccess::~ExecutionAccess() { |
922 Top::break_access_->Unlock(); | 923 Top::break_access_->Unlock(); |
923 } | 924 } |
924 | 925 |
925 | 926 |
926 } } // namespace v8::internal | 927 } } // namespace v8::internal |
OLD | NEW |