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 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2190 cpu_profiler_ = new CpuProfiler(this); | 2190 cpu_profiler_ = new CpuProfiler(this); |
2191 heap_profiler_ = new HeapProfiler(heap()); | 2191 heap_profiler_ = new HeapProfiler(heap()); |
2192 interpreter_ = new interpreter::Interpreter(this); | 2192 interpreter_ = new interpreter::Interpreter(this); |
2193 | 2193 |
2194 // Enable logging before setting up the heap | 2194 // Enable logging before setting up the heap |
2195 logger_->SetUp(this); | 2195 logger_->SetUp(this); |
2196 | 2196 |
2197 // Initialize other runtime facilities | 2197 // Initialize other runtime facilities |
2198 #if defined(USE_SIMULATOR) | 2198 #if defined(USE_SIMULATOR) |
2199 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ | 2199 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ |
2200 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC | 2200 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_S390 |
2201 Simulator::Initialize(this); | 2201 Simulator::Initialize(this); |
2202 #endif | 2202 #endif |
2203 #endif | 2203 #endif |
2204 | 2204 |
2205 code_aging_helper_ = new CodeAgingHelper(this); | 2205 code_aging_helper_ = new CodeAgingHelper(this); |
2206 | 2206 |
2207 { // NOLINT | 2207 { // NOLINT |
2208 // Ensure that the thread has a valid stack guard. The v8::Locker object | 2208 // Ensure that the thread has a valid stack guard. The v8::Locker object |
2209 // will ensure this too, but we don't have to use lockers if we are only | 2209 // will ensure this too, but we don't have to use lockers if we are only |
2210 // using one thread. | 2210 // using one thread. |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2975 // Then check whether this scope intercepts. | 2975 // Then check whether this scope intercepts. |
2976 if ((flag & intercept_mask_)) { | 2976 if ((flag & intercept_mask_)) { |
2977 intercepted_flags_ |= flag; | 2977 intercepted_flags_ |= flag; |
2978 return true; | 2978 return true; |
2979 } | 2979 } |
2980 return false; | 2980 return false; |
2981 } | 2981 } |
2982 | 2982 |
2983 } // namespace internal | 2983 } // namespace internal |
2984 } // namespace v8 | 2984 } // namespace v8 |
OLD | NEW |