| 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 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 | 61 |
| 62 ThreadLocalTop::ThreadLocalTop() { | 62 ThreadLocalTop::ThreadLocalTop() { |
| 63 InitializeInternal(); | 63 InitializeInternal(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 | 66 |
| 67 void ThreadLocalTop::InitializeInternal() { | 67 void ThreadLocalTop::InitializeInternal() { |
| 68 c_entry_fp_ = 0; | 68 c_entry_fp_ = 0; |
| 69 c_function_ = 0; |
| 69 handler_ = 0; | 70 handler_ = 0; |
| 70 #ifdef USE_SIMULATOR | 71 #ifdef USE_SIMULATOR |
| 71 simulator_ = NULL; | 72 simulator_ = NULL; |
| 72 #endif | 73 #endif |
| 73 js_entry_sp_ = NULL; | 74 js_entry_sp_ = NULL; |
| 74 external_callback_scope_ = NULL; | 75 external_callback_scope_ = NULL; |
| 75 current_vm_state_ = EXTERNAL; | 76 current_vm_state_ = EXTERNAL; |
| 76 try_catch_handler_ = NULL; | 77 try_catch_handler_ = NULL; |
| 77 context_ = NULL; | 78 context_ = NULL; |
| 78 thread_id_ = ThreadId::Invalid(); | 79 thread_id_ = ThreadId::Invalid(); |
| (...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2402 if (prev_ && prev_->Intercept(flag)) return true; | 2403 if (prev_ && prev_->Intercept(flag)) return true; |
| 2403 // Then check whether this scope intercepts. | 2404 // Then check whether this scope intercepts. |
| 2404 if ((flag & intercept_mask_)) { | 2405 if ((flag & intercept_mask_)) { |
| 2405 intercepted_flags_ |= flag; | 2406 intercepted_flags_ |= flag; |
| 2406 return true; | 2407 return true; |
| 2407 } | 2408 } |
| 2408 return false; | 2409 return false; |
| 2409 } | 2410 } |
| 2410 | 2411 |
| 2411 } } // namespace v8::internal | 2412 } } // namespace v8::internal |
| OLD | NEW |