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> |
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 has_fatal_error_(false), | 1795 has_fatal_error_(false), |
1796 initialized_from_snapshot_(false), | 1796 initialized_from_snapshot_(false), |
1797 cpu_profiler_(NULL), | 1797 cpu_profiler_(NULL), |
1798 heap_profiler_(NULL), | 1798 heap_profiler_(NULL), |
1799 function_entry_hook_(NULL), | 1799 function_entry_hook_(NULL), |
1800 deferred_handles_head_(NULL), | 1800 deferred_handles_head_(NULL), |
1801 optimizing_compile_dispatcher_(NULL), | 1801 optimizing_compile_dispatcher_(NULL), |
1802 stress_deopt_count_(0), | 1802 stress_deopt_count_(0), |
1803 virtual_handler_register_(NULL), | 1803 virtual_handler_register_(NULL), |
1804 virtual_slot_register_(NULL), | 1804 virtual_slot_register_(NULL), |
| 1805 interpreter_entry_trampoline_start_(NULL), |
| 1806 interpreter_entry_trampoline_end_(NULL), |
| 1807 interpreter_bytecode_dispatch_start_(NULL), |
| 1808 interpreter_bytecode_dispatch_end_(NULL), |
1805 next_optimization_id_(0), | 1809 next_optimization_id_(0), |
1806 js_calls_from_api_counter_(0), | 1810 js_calls_from_api_counter_(0), |
1807 #if TRACE_MAPS | 1811 #if TRACE_MAPS |
1808 next_unique_sfi_id_(0), | 1812 next_unique_sfi_id_(0), |
1809 #endif | 1813 #endif |
1810 use_counter_callback_(NULL), | 1814 use_counter_callback_(NULL), |
1811 basic_block_profiler_(NULL), | 1815 basic_block_profiler_(NULL), |
1812 cancelable_task_manager_(new CancelableTaskManager()), | 1816 cancelable_task_manager_(new CancelableTaskManager()), |
1813 abort_on_uncaught_exception_callback_(NULL) { | 1817 abort_on_uncaught_exception_callback_(NULL) { |
1814 { | 1818 { |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2220 runtime_profiler_ = new RuntimeProfiler(this); | 2224 runtime_profiler_ = new RuntimeProfiler(this); |
2221 | 2225 |
2222 // If we are deserializing, read the state into the now-empty heap. | 2226 // If we are deserializing, read the state into the now-empty heap. |
2223 if (!create_heap_objects) { | 2227 if (!create_heap_objects) { |
2224 des->Deserialize(this); | 2228 des->Deserialize(this); |
2225 } | 2229 } |
2226 stub_cache_->Initialize(); | 2230 stub_cache_->Initialize(); |
2227 | 2231 |
2228 if (FLAG_ignition) { | 2232 if (FLAG_ignition) { |
2229 interpreter_->Initialize(); | 2233 interpreter_->Initialize(); |
| 2234 |
| 2235 Handle<Code> entry_trampoine = builtins()->InterpreterEntryTrampoline(); |
| 2236 interpreter_entry_trampoline_start_ = entry_trampoine->instruction_start(); |
| 2237 interpreter_entry_trampoline_end_ = entry_trampoine->instruction_end(); |
| 2238 Handle<Code> bytecode_dispatch = |
| 2239 builtins()->InterpreterEnterBytecodeDispatch(); |
| 2240 interpreter_bytecode_dispatch_start_ = |
| 2241 bytecode_dispatch->instruction_start(); |
| 2242 interpreter_bytecode_dispatch_end_ = bytecode_dispatch->instruction_end(); |
2230 } | 2243 } |
2231 | 2244 |
2232 // Finish initialization of ThreadLocal after deserialization is done. | 2245 // Finish initialization of ThreadLocal after deserialization is done. |
2233 clear_pending_exception(); | 2246 clear_pending_exception(); |
2234 clear_pending_message(); | 2247 clear_pending_message(); |
2235 clear_scheduled_exception(); | 2248 clear_scheduled_exception(); |
2236 | 2249 |
2237 // Deserializing may put strange things in the root array's copy of the | 2250 // Deserializing may put strange things in the root array's copy of the |
2238 // stack guard. | 2251 // stack guard. |
2239 heap_.SetStackLimits(); | 2252 heap_.SetStackLimits(); |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 // Then check whether this scope intercepts. | 2923 // Then check whether this scope intercepts. |
2911 if ((flag & intercept_mask_)) { | 2924 if ((flag & intercept_mask_)) { |
2912 intercepted_flags_ |= flag; | 2925 intercepted_flags_ |= flag; |
2913 return true; | 2926 return true; |
2914 } | 2927 } |
2915 return false; | 2928 return false; |
2916 } | 2929 } |
2917 | 2930 |
2918 } // namespace internal | 2931 } // namespace internal |
2919 } // namespace v8 | 2932 } // namespace v8 |
OLD | NEW |