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 <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2020 call_descriptor_data_ = | 2020 call_descriptor_data_ = |
2021 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; | 2021 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; |
2022 cpu_profiler_ = new CpuProfiler(this); | 2022 cpu_profiler_ = new CpuProfiler(this); |
2023 heap_profiler_ = new HeapProfiler(heap()); | 2023 heap_profiler_ = new HeapProfiler(heap()); |
2024 | 2024 |
2025 // Enable logging before setting up the heap | 2025 // Enable logging before setting up the heap |
2026 logger_->SetUp(this); | 2026 logger_->SetUp(this); |
2027 | 2027 |
2028 // Initialize other runtime facilities | 2028 // Initialize other runtime facilities |
2029 #if defined(USE_SIMULATOR) | 2029 #if defined(USE_SIMULATOR) |
2030 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || \ | 2030 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ |
2031 V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 | 2031 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC |
2032 Simulator::Initialize(this); | 2032 Simulator::Initialize(this); |
2033 #endif | 2033 #endif |
2034 #endif | 2034 #endif |
2035 | 2035 |
2036 code_aging_helper_ = new CodeAgingHelper(); | 2036 code_aging_helper_ = new CodeAgingHelper(); |
2037 | 2037 |
2038 { // NOLINT | 2038 { // NOLINT |
2039 // Ensure that the thread has a valid stack guard. The v8::Locker object | 2039 // Ensure that the thread has a valid stack guard. The v8::Locker object |
2040 // will ensure this too, but we don't have to use lockers if we are only | 2040 // will ensure this too, but we don't have to use lockers if we are only |
2041 // using one thread. | 2041 // using one thread. |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 if (prev_ && prev_->Intercept(flag)) return true; | 2569 if (prev_ && prev_->Intercept(flag)) return true; |
2570 // Then check whether this scope intercepts. | 2570 // Then check whether this scope intercepts. |
2571 if ((flag & intercept_mask_)) { | 2571 if ((flag & intercept_mask_)) { |
2572 intercepted_flags_ |= flag; | 2572 intercepted_flags_ |= flag; |
2573 return true; | 2573 return true; |
2574 } | 2574 } |
2575 return false; | 2575 return false; |
2576 } | 2576 } |
2577 | 2577 |
2578 } } // namespace v8::internal | 2578 } } // namespace v8::internal |
OLD | NEW |