Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: src/isolate.cc

Issue 2239323002: Revert of "[heap] Switch to 500k pages" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/spaces.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 PrintF("Concurrent recompilation has been disabled for tracing.\n"); 2431 PrintF("Concurrent recompilation has been disabled for tracing.\n");
2432 } else if (OptimizingCompileDispatcher::Enabled()) { 2432 } else if (OptimizingCompileDispatcher::Enabled()) {
2433 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); 2433 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this);
2434 } 2434 }
2435 2435
2436 // Initialize runtime profiler before deserialization, because collections may 2436 // Initialize runtime profiler before deserialization, because collections may
2437 // occur, clearing/updating ICs. 2437 // occur, clearing/updating ICs.
2438 runtime_profiler_ = new RuntimeProfiler(this); 2438 runtime_profiler_ = new RuntimeProfiler(this);
2439 2439
2440 // If we are deserializing, read the state into the now-empty heap. 2440 // If we are deserializing, read the state into the now-empty heap.
2441 { 2441 if (!create_heap_objects) {
2442 AlwaysAllocateScope always_allocate(this); 2442 des->Deserialize(this);
2443 2443 }
2444 if (!create_heap_objects) { 2444 load_stub_cache_->Initialize();
2445 des->Deserialize(this); 2445 store_stub_cache_->Initialize();
2446 } 2446 if (FLAG_ignition || serializer_enabled()) {
2447 load_stub_cache_->Initialize(); 2447 interpreter_->Initialize();
2448 store_stub_cache_->Initialize();
2449 if (FLAG_ignition || serializer_enabled()) {
2450 interpreter_->Initialize();
2451 }
2452
2453 heap_.NotifyDeserializationComplete();
2454 } 2448 }
2455 2449
2456 // Finish initialization of ThreadLocal after deserialization is done. 2450 // Finish initialization of ThreadLocal after deserialization is done.
2457 clear_pending_exception(); 2451 clear_pending_exception();
2458 clear_pending_message(); 2452 clear_pending_message();
2459 clear_scheduled_exception(); 2453 clear_scheduled_exception();
2460 2454
2461 // Deserializing may put strange things in the root array's copy of the 2455 // Deserializing may put strange things in the root array's copy of the
2462 // stack guard. 2456 // stack guard.
2463 heap_.SetStackLimits(); 2457 heap_.SetStackLimits();
(...skipping 10 matching lines...) Expand all
2474 Internals::kIsolateEmbedderDataOffset); 2468 Internals::kIsolateEmbedderDataOffset);
2475 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 2469 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
2476 Internals::kIsolateRootsOffset); 2470 Internals::kIsolateRootsOffset);
2477 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)), 2471 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)),
2478 Internals::kExternalMemoryOffset); 2472 Internals::kExternalMemoryOffset);
2479 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)), 2473 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)),
2480 Internals::kExternalMemoryLimitOffset); 2474 Internals::kExternalMemoryLimitOffset);
2481 2475
2482 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); 2476 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs();
2483 2477
2478 heap_.NotifyDeserializationComplete();
2479
2484 if (!create_heap_objects) { 2480 if (!create_heap_objects) {
2485 // Now that the heap is consistent, it's OK to generate the code for the 2481 // Now that the heap is consistent, it's OK to generate the code for the
2486 // deopt entry table that might have been referred to by optimized code in 2482 // deopt entry table that might have been referred to by optimized code in
2487 // the snapshot. 2483 // the snapshot.
2488 HandleScope scope(this); 2484 HandleScope scope(this);
2489 Deoptimizer::EnsureCodeForDeoptimizationEntry( 2485 Deoptimizer::EnsureCodeForDeoptimizationEntry(
2490 this, Deoptimizer::LAZY, 2486 this, Deoptimizer::LAZY,
2491 ExternalReferenceTable::kDeoptTableSerializeEntryCount - 1); 2487 ExternalReferenceTable::kDeoptTableSerializeEntryCount - 1);
2492 } 2488 }
2493 2489
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
3209 // Then check whether this scope intercepts. 3205 // Then check whether this scope intercepts.
3210 if ((flag & intercept_mask_)) { 3206 if ((flag & intercept_mask_)) {
3211 intercepted_flags_ |= flag; 3207 intercepted_flags_ |= flag;
3212 return true; 3208 return true;
3213 } 3209 }
3214 return false; 3210 return false;
3215 } 3211 }
3216 3212
3217 } // namespace internal 3213 } // namespace internal
3218 } // namespace v8 3214 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698