| 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> |
| 11 | 11 |
| 12 #include "src/ast/context-slot-cache.h" | 12 #include "src/ast/context-slot-cache.h" |
| 13 #include "src/base/hashmap.h" | 13 #include "src/base/hashmap.h" |
| 14 #include "src/base/platform/platform.h" | 14 #include "src/base/platform/platform.h" |
| 15 #include "src/base/sys-info.h" | 15 #include "src/base/sys-info.h" |
| 16 #include "src/base/utils/random-number-generator.h" | 16 #include "src/base/utils/random-number-generator.h" |
| 17 #include "src/basic-block-profiler.h" | 17 #include "src/basic-block-profiler.h" |
| 18 #include "src/bootstrapper.h" | 18 #include "src/bootstrapper.h" |
| 19 #include "src/cancelable-task.h" | 19 #include "src/cancelable-task.h" |
| 20 #include "src/codegen.h" | 20 #include "src/codegen.h" |
| 21 #include "src/compilation-cache.h" | 21 #include "src/compilation-cache.h" |
| 22 #include "src/compilation-statistics.h" | 22 #include "src/compilation-statistics.h" |
| 23 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" | 23 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" |
| 24 #include "src/crankshaft/hydrogen.h" | 24 #include "src/crankshaft/hydrogen.h" |
| 25 #include "src/debug/debug.h" | 25 #include "src/debug/debug.h" |
| 26 #include "src/deoptimizer.h" | 26 #include "src/deoptimizer.h" |
| 27 #include "src/external-reference-table.h" | 27 #include "src/external-reference-table.h" |
| 28 #include "src/frames-inl.h" | 28 #include "src/frames-inl.h" |
| 29 #include "src/ic/access-compiler-data.h" |
| 29 #include "src/ic/stub-cache.h" | 30 #include "src/ic/stub-cache.h" |
| 30 #include "src/interface-descriptors.h" | 31 #include "src/interface-descriptors.h" |
| 31 #include "src/interpreter/interpreter.h" | 32 #include "src/interpreter/interpreter.h" |
| 32 #include "src/isolate-inl.h" | 33 #include "src/isolate-inl.h" |
| 33 #include "src/libsampler/sampler.h" | 34 #include "src/libsampler/sampler.h" |
| 34 #include "src/log.h" | 35 #include "src/log.h" |
| 35 #include "src/messages.h" | 36 #include "src/messages.h" |
| 36 #include "src/profiler/cpu-profiler.h" | 37 #include "src/profiler/cpu-profiler.h" |
| 37 #include "src/prototype.h" | 38 #include "src/prototype.h" |
| 38 #include "src/regexp/regexp-stack.h" | 39 #include "src/regexp/regexp-stack.h" |
| (...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 | 2209 |
| 2209 delete unicode_cache_; | 2210 delete unicode_cache_; |
| 2210 unicode_cache_ = NULL; | 2211 unicode_cache_ = NULL; |
| 2211 | 2212 |
| 2212 delete date_cache_; | 2213 delete date_cache_; |
| 2213 date_cache_ = NULL; | 2214 date_cache_ = NULL; |
| 2214 | 2215 |
| 2215 delete[] call_descriptor_data_; | 2216 delete[] call_descriptor_data_; |
| 2216 call_descriptor_data_ = NULL; | 2217 call_descriptor_data_ = NULL; |
| 2217 | 2218 |
| 2219 delete access_compiler_data_; |
| 2220 access_compiler_data_ = NULL; |
| 2221 |
| 2218 delete regexp_stack_; | 2222 delete regexp_stack_; |
| 2219 regexp_stack_ = NULL; | 2223 regexp_stack_ = NULL; |
| 2220 | 2224 |
| 2221 delete descriptor_lookup_cache_; | 2225 delete descriptor_lookup_cache_; |
| 2222 descriptor_lookup_cache_ = NULL; | 2226 descriptor_lookup_cache_ = NULL; |
| 2223 delete context_slot_cache_; | 2227 delete context_slot_cache_; |
| 2224 context_slot_cache_ = NULL; | 2228 context_slot_cache_ = NULL; |
| 2225 delete keyed_lookup_cache_; | 2229 delete keyed_lookup_cache_; |
| 2226 keyed_lookup_cache_ = NULL; | 2230 keyed_lookup_cache_ = NULL; |
| 2227 | 2231 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2378 bootstrapper_ = new Bootstrapper(this); | 2382 bootstrapper_ = new Bootstrapper(this); |
| 2379 handle_scope_implementer_ = new HandleScopeImplementer(this); | 2383 handle_scope_implementer_ = new HandleScopeImplementer(this); |
| 2380 load_stub_cache_ = new StubCache(this, Code::LOAD_IC); | 2384 load_stub_cache_ = new StubCache(this, Code::LOAD_IC); |
| 2381 store_stub_cache_ = new StubCache(this, Code::STORE_IC); | 2385 store_stub_cache_ = new StubCache(this, Code::STORE_IC); |
| 2382 materialized_object_store_ = new MaterializedObjectStore(this); | 2386 materialized_object_store_ = new MaterializedObjectStore(this); |
| 2383 regexp_stack_ = new RegExpStack(); | 2387 regexp_stack_ = new RegExpStack(); |
| 2384 regexp_stack_->isolate_ = this; | 2388 regexp_stack_->isolate_ = this; |
| 2385 date_cache_ = new DateCache(); | 2389 date_cache_ = new DateCache(); |
| 2386 call_descriptor_data_ = | 2390 call_descriptor_data_ = |
| 2387 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; | 2391 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; |
| 2392 access_compiler_data_ = new AccessCompilerData(); |
| 2388 cpu_profiler_ = new CpuProfiler(this); | 2393 cpu_profiler_ = new CpuProfiler(this); |
| 2389 heap_profiler_ = new HeapProfiler(heap()); | 2394 heap_profiler_ = new HeapProfiler(heap()); |
| 2390 interpreter_ = new interpreter::Interpreter(this); | 2395 interpreter_ = new interpreter::Interpreter(this); |
| 2391 | 2396 |
| 2392 // Enable logging before setting up the heap | 2397 // Enable logging before setting up the heap |
| 2393 logger_->SetUp(this); | 2398 logger_->SetUp(this); |
| 2394 | 2399 |
| 2395 // Initialize other runtime facilities | 2400 // Initialize other runtime facilities |
| 2396 #if defined(USE_SIMULATOR) | 2401 #if defined(USE_SIMULATOR) |
| 2397 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ | 2402 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3317 // Then check whether this scope intercepts. | 3322 // Then check whether this scope intercepts. |
| 3318 if ((flag & intercept_mask_)) { | 3323 if ((flag & intercept_mask_)) { |
| 3319 intercepted_flags_ |= flag; | 3324 intercepted_flags_ |= flag; |
| 3320 return true; | 3325 return true; |
| 3321 } | 3326 } |
| 3322 return false; | 3327 return false; |
| 3323 } | 3328 } |
| 3324 | 3329 |
| 3325 } // namespace internal | 3330 } // namespace internal |
| 3326 } // namespace v8 | 3331 } // namespace v8 |
| OLD | NEW |