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

Side by Side Diff: src/bootstrapper.cc

Issue 978813002: Serializer: still install experimental globals when creating a snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comment Created 5 years, 9 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 | « no previous file | test/cctest/test-serialize.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 2887
2888 MakeFunctionInstancePrototypeWritable(); 2888 MakeFunctionInstancePrototypeWritable();
2889 2889
2890 if (!ConfigureGlobalObjects(global_proxy_template)) return; 2890 if (!ConfigureGlobalObjects(global_proxy_template)) return;
2891 isolate->counters()->contexts_created_from_scratch()->Increment(); 2891 isolate->counters()->contexts_created_from_scratch()->Increment();
2892 } 2892 }
2893 2893
2894 // Install experimental natives. Do not include them into the snapshot as we 2894 // Install experimental natives. Do not include them into the snapshot as we
2895 // should be able to turn them off at runtime. Re-installing them after 2895 // should be able to turn them off at runtime. Re-installing them after
2896 // they have already been deserialized would also fail. 2896 // they have already been deserialized would also fail.
2897 if (!isolate->serializer_enabled()) { 2897 if (!isolate->serializer_enabled() && !InstallExperimentalNatives()) return;
2898 if (!InstallExperimentalNatives()) return; 2898
2899 InitializeExperimentalGlobal(); 2899 InitializeExperimentalGlobal();
2900 }
2901 2900
2902 // The serializer cannot serialize typed arrays. Reset those typed arrays 2901 // The serializer cannot serialize typed arrays. Reset those typed arrays
2903 // for each new context. 2902 // for each new context.
2904 InitializeBuiltinTypedArrays(); 2903 InitializeBuiltinTypedArrays();
2905 2904
2906 result_ = native_context(); 2905 result_ = native_context();
2907 } 2906 }
2908 2907
2909 2908
2910 // Support for thread preemption. 2909 // Support for thread preemption.
(...skipping 18 matching lines...) Expand all
2929 return from + sizeof(NestingCounterType); 2928 return from + sizeof(NestingCounterType);
2930 } 2929 }
2931 2930
2932 2931
2933 // Called when the top-level V8 mutex is destroyed. 2932 // Called when the top-level V8 mutex is destroyed.
2934 void Bootstrapper::FreeThreadResources() { 2933 void Bootstrapper::FreeThreadResources() {
2935 DCHECK(!IsActive()); 2934 DCHECK(!IsActive());
2936 } 2935 }
2937 2936
2938 } } // namespace v8::internal 2937 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698