| 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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1837 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; | 1837 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; |
| 1838 cpu_profiler_ = new CpuProfiler(this); | 1838 cpu_profiler_ = new CpuProfiler(this); |
| 1839 heap_profiler_ = new HeapProfiler(heap()); | 1839 heap_profiler_ = new HeapProfiler(heap()); |
| 1840 | 1840 |
| 1841 // Enable logging before setting up the heap | 1841 // Enable logging before setting up the heap |
| 1842 logger_->SetUp(this); | 1842 logger_->SetUp(this); |
| 1843 | 1843 |
| 1844 // Initialize other runtime facilities | 1844 // Initialize other runtime facilities |
| 1845 #if defined(USE_SIMULATOR) | 1845 #if defined(USE_SIMULATOR) |
| 1846 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || \ | 1846 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || \ |
| 1847 V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 | 1847 V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || \ |
| 1848 V8_TARGET_ARCH_PPC |
| 1848 Simulator::Initialize(this); | 1849 Simulator::Initialize(this); |
| 1849 #endif | 1850 #endif |
| 1850 #endif | 1851 #endif |
| 1851 | 1852 |
| 1852 code_aging_helper_ = new CodeAgingHelper(); | 1853 code_aging_helper_ = new CodeAgingHelper(); |
| 1853 | 1854 |
| 1854 { // NOLINT | 1855 { // NOLINT |
| 1855 // Ensure that the thread has a valid stack guard. The v8::Locker object | 1856 // Ensure that the thread has a valid stack guard. The v8::Locker object |
| 1856 // will ensure this too, but we don't have to use lockers if we are only | 1857 // will ensure this too, but we don't have to use lockers if we are only |
| 1857 // using one thread. | 1858 // using one thread. |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2358 if (prev_ && prev_->Intercept(flag)) return true; | 2359 if (prev_ && prev_->Intercept(flag)) return true; |
| 2359 // Then check whether this scope intercepts. | 2360 // Then check whether this scope intercepts. |
| 2360 if ((flag & intercept_mask_)) { | 2361 if ((flag & intercept_mask_)) { |
| 2361 intercepted_flags_ |= flag; | 2362 intercepted_flags_ |= flag; |
| 2362 return true; | 2363 return true; |
| 2363 } | 2364 } |
| 2364 return false; | 2365 return false; |
| 2365 } | 2366 } |
| 2366 | 2367 |
| 2367 } } // namespace v8::internal | 2368 } } // namespace v8::internal |
| OLD | NEW |