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 "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 call_descriptors_ = | 1829 call_descriptors_ = |
1830 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; | 1830 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; |
1831 cpu_profiler_ = new CpuProfiler(this); | 1831 cpu_profiler_ = new CpuProfiler(this); |
1832 heap_profiler_ = new HeapProfiler(heap()); | 1832 heap_profiler_ = new HeapProfiler(heap()); |
1833 | 1833 |
1834 // Enable logging before setting up the heap | 1834 // Enable logging before setting up the heap |
1835 logger_->SetUp(this); | 1835 logger_->SetUp(this); |
1836 | 1836 |
1837 // Initialize other runtime facilities | 1837 // Initialize other runtime facilities |
1838 #if defined(USE_SIMULATOR) | 1838 #if defined(USE_SIMULATOR) |
1839 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS | 1839 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || \ |
| 1840 V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
1840 Simulator::Initialize(this); | 1841 Simulator::Initialize(this); |
1841 #endif | 1842 #endif |
1842 #endif | 1843 #endif |
1843 | 1844 |
1844 code_aging_helper_ = new CodeAgingHelper(); | 1845 code_aging_helper_ = new CodeAgingHelper(); |
1845 | 1846 |
1846 { // NOLINT | 1847 { // NOLINT |
1847 // Ensure that the thread has a valid stack guard. The v8::Locker object | 1848 // Ensure that the thread has a valid stack guard. The v8::Locker object |
1848 // will ensure this too, but we don't have to use lockers if we are only | 1849 // will ensure this too, but we don't have to use lockers if we are only |
1849 // using one thread. | 1850 // using one thread. |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2347 if (prev_ && prev_->Intercept(flag)) return true; | 2348 if (prev_ && prev_->Intercept(flag)) return true; |
2348 // Then check whether this scope intercepts. | 2349 // Then check whether this scope intercepts. |
2349 if ((flag & intercept_mask_)) { | 2350 if ((flag & intercept_mask_)) { |
2350 intercepted_flags_ |= flag; | 2351 intercepted_flags_ |= flag; |
2351 return true; | 2352 return true; |
2352 } | 2353 } |
2353 return false; | 2354 return false; |
2354 } | 2355 } |
2355 | 2356 |
2356 } } // namespace v8::internal | 2357 } } // namespace v8::internal |
OLD | NEW |