| 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 "src/isolate.h" | 5 #include "src/isolate.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2144 logger_->SetUp(this); | 2144 logger_->SetUp(this); |
| 2145 | 2145 |
| 2146 // Initialize other runtime facilities | 2146 // Initialize other runtime facilities |
| 2147 #if defined(USE_SIMULATOR) | 2147 #if defined(USE_SIMULATOR) |
| 2148 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ | 2148 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ |
| 2149 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC | 2149 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC |
| 2150 Simulator::Initialize(this); | 2150 Simulator::Initialize(this); |
| 2151 #endif | 2151 #endif |
| 2152 #endif | 2152 #endif |
| 2153 | 2153 |
| 2154 code_aging_helper_ = new CodeAgingHelper(); | 2154 code_aging_helper_ = new CodeAgingHelper(this); |
| 2155 | 2155 |
| 2156 { // NOLINT | 2156 { // NOLINT |
| 2157 // Ensure that the thread has a valid stack guard. The v8::Locker object | 2157 // Ensure that the thread has a valid stack guard. The v8::Locker object |
| 2158 // will ensure this too, but we don't have to use lockers if we are only | 2158 // will ensure this too, but we don't have to use lockers if we are only |
| 2159 // using one thread. | 2159 // using one thread. |
| 2160 ExecutionAccess lock(this); | 2160 ExecutionAccess lock(this); |
| 2161 stack_guard_.InitThread(lock); | 2161 stack_guard_.InitThread(lock); |
| 2162 } | 2162 } |
| 2163 | 2163 |
| 2164 // SetUp the object heap. | 2164 // SetUp the object heap. |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2842 // Then check whether this scope intercepts. | 2842 // Then check whether this scope intercepts. |
| 2843 if ((flag & intercept_mask_)) { | 2843 if ((flag & intercept_mask_)) { |
| 2844 intercepted_flags_ |= flag; | 2844 intercepted_flags_ |= flag; |
| 2845 return true; | 2845 return true; |
| 2846 } | 2846 } |
| 2847 return false; | 2847 return false; |
| 2848 } | 2848 } |
| 2849 | 2849 |
| 2850 } // namespace internal | 2850 } // namespace internal |
| 2851 } // namespace v8 | 2851 } // namespace v8 |
| OLD | NEW |