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

Side by Side Diff: src/isolate.cc

Issue 2790573002: Encode any deoptimizer entry in serialized data. (Closed)
Patch Set: Created 3 years, 8 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/external-reference-table.cc ('k') | src/snapshot/deserializer.cc » ('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 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after
2794 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)), 2794 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)),
2795 Internals::kExternalMemoryLimitOffset); 2795 Internals::kExternalMemoryLimitOffset);
2796 2796
2797 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); 2797 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs();
2798 2798
2799 { 2799 {
2800 HandleScope scope(this); 2800 HandleScope scope(this);
2801 ast_string_constants_ = new AstStringConstants(this, heap()->HashSeed()); 2801 ast_string_constants_ = new AstStringConstants(this, heap()->HashSeed());
2802 } 2802 }
2803 2803
2804 if (!create_heap_objects) {
2805 // Now that the heap is consistent, it's OK to generate the code for the
2806 // deopt entry table that might have been referred to by optimized code in
2807 // the snapshot.
2808 HandleScope scope(this);
2809 Deoptimizer::EnsureCodeForDeoptimizationEntry(
2810 this, Deoptimizer::LAZY,
2811 ExternalReferenceTable::kDeoptTableSerializeEntryCount - 1);
2812 }
2813
2814 if (!serializer_enabled()) { 2804 if (!serializer_enabled()) {
2815 // Ensure that all stubs which need to be generated ahead of time, but 2805 // Ensure that all stubs which need to be generated ahead of time, but
2816 // cannot be serialized into the snapshot have been generated. 2806 // cannot be serialized into the snapshot have been generated.
2817 HandleScope scope(this); 2807 HandleScope scope(this);
2818 CodeStub::GenerateFPStubs(this); 2808 CodeStub::GenerateFPStubs(this);
2819 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 2809 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
2820 StubFailureTrampolineStub::GenerateAheadOfTime(this); 2810 StubFailureTrampolineStub::GenerateAheadOfTime(this);
2821 } 2811 }
2822 2812
2823 initialized_from_snapshot_ = (des != NULL); 2813 initialized_from_snapshot_ = (des != NULL);
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
3731 // Then check whether this scope intercepts. 3721 // Then check whether this scope intercepts.
3732 if ((flag & intercept_mask_)) { 3722 if ((flag & intercept_mask_)) {
3733 intercepted_flags_ |= flag; 3723 intercepted_flags_ |= flag;
3734 return true; 3724 return true;
3735 } 3725 }
3736 return false; 3726 return false;
3737 } 3727 }
3738 3728
3739 } // namespace internal 3729 } // namespace internal
3740 } // namespace v8 3730 } // namespace v8
OLDNEW
« no previous file with comments | « src/external-reference-table.cc ('k') | src/snapshot/deserializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698