| 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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 call_descriptors_ = | 1886 call_descriptors_ = |
| 1887 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; | 1887 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; |
| 1888 cpu_profiler_ = new CpuProfiler(this); | 1888 cpu_profiler_ = new CpuProfiler(this); |
| 1889 heap_profiler_ = new HeapProfiler(heap()); | 1889 heap_profiler_ = new HeapProfiler(heap()); |
| 1890 | 1890 |
| 1891 // Enable logging before setting up the heap | 1891 // Enable logging before setting up the heap |
| 1892 logger_->SetUp(this); | 1892 logger_->SetUp(this); |
| 1893 | 1893 |
| 1894 // Initialize other runtime facilities | 1894 // Initialize other runtime facilities |
| 1895 #if defined(USE_SIMULATOR) | 1895 #if defined(USE_SIMULATOR) |
| 1896 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || \ | 1896 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ |
| 1897 V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 | 1897 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC |
| 1898 Simulator::Initialize(this); | 1898 Simulator::Initialize(this); |
| 1899 #endif | 1899 #endif |
| 1900 #endif | 1900 #endif |
| 1901 | 1901 |
| 1902 code_aging_helper_ = new CodeAgingHelper(); | 1902 code_aging_helper_ = new CodeAgingHelper(); |
| 1903 | 1903 |
| 1904 { // NOLINT | 1904 { // NOLINT |
| 1905 // Ensure that the thread has a valid stack guard. The v8::Locker object | 1905 // Ensure that the thread has a valid stack guard. The v8::Locker object |
| 1906 // will ensure this too, but we don't have to use lockers if we are only | 1906 // will ensure this too, but we don't have to use lockers if we are only |
| 1907 // using one thread. | 1907 // using one thread. |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2415 if (prev_ && prev_->Intercept(flag)) return true; | 2415 if (prev_ && prev_->Intercept(flag)) return true; |
| 2416 // Then check whether this scope intercepts. | 2416 // Then check whether this scope intercepts. |
| 2417 if ((flag & intercept_mask_)) { | 2417 if ((flag & intercept_mask_)) { |
| 2418 intercepted_flags_ |= flag; | 2418 intercepted_flags_ |= flag; |
| 2419 return true; | 2419 return true; |
| 2420 } | 2420 } |
| 2421 return false; | 2421 return false; |
| 2422 } | 2422 } |
| 2423 | 2423 |
| 2424 } } // namespace v8::internal | 2424 } } // namespace v8::internal |
| OLD | NEW |