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 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2235 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), | 2235 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), |
2236 Internals::kIsolateRootsOffset); | 2236 Internals::kIsolateRootsOffset); |
2237 CHECK_EQ(static_cast<int>( | 2237 CHECK_EQ(static_cast<int>( |
2238 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), | 2238 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), |
2239 Internals::kAmountOfExternalAllocatedMemoryOffset); | 2239 Internals::kAmountOfExternalAllocatedMemoryOffset); |
2240 CHECK_EQ(static_cast<int>(OFFSET_OF( | 2240 CHECK_EQ(static_cast<int>(OFFSET_OF( |
2241 Isolate, | 2241 Isolate, |
2242 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), | 2242 heap_.amount_of_external_allocated_memory_at_last_global_gc_)), |
2243 Internals::kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset); | 2243 Internals::kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset); |
2244 | 2244 |
2245 time_millis_at_init_ = base::OS::TimeCurrentMillis(); | 2245 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); |
2246 | 2246 |
2247 heap_.NotifyDeserializationComplete(); | 2247 heap_.NotifyDeserializationComplete(); |
2248 | 2248 |
2249 if (!create_heap_objects) { | 2249 if (!create_heap_objects) { |
2250 // Now that the heap is consistent, it's OK to generate the code for the | 2250 // Now that the heap is consistent, it's OK to generate the code for the |
2251 // deopt entry table that might have been referred to by optimized code in | 2251 // deopt entry table that might have been referred to by optimized code in |
2252 // the snapshot. | 2252 // the snapshot. |
2253 HandleScope scope(this); | 2253 HandleScope scope(this); |
2254 Deoptimizer::EnsureCodeForDeoptimizationEntry( | 2254 Deoptimizer::EnsureCodeForDeoptimizationEntry( |
2255 this, | 2255 this, |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2851 // Then check whether this scope intercepts. | 2851 // Then check whether this scope intercepts. |
2852 if ((flag & intercept_mask_)) { | 2852 if ((flag & intercept_mask_)) { |
2853 intercepted_flags_ |= flag; | 2853 intercepted_flags_ |= flag; |
2854 return true; | 2854 return true; |
2855 } | 2855 } |
2856 return false; | 2856 return false; |
2857 } | 2857 } |
2858 | 2858 |
2859 } // namespace internal | 2859 } // namespace internal |
2860 } // namespace v8 | 2860 } // namespace v8 |
OLD | NEW |