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

Side by Side Diff: runtime/vm/precompiler.cc

Issue 1997143002: Don't write Code::code_source_map_ in snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | runtime/vm/raw_object.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 (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/precompiler.h" 5 #include "vm/precompiler.h"
6 6
7 #include "vm/aot_optimizer.h" 7 #include "vm/aot_optimizer.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/branch_optimizer.h" 10 #include "vm/branch_optimizer.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 DropFunctions(); 235 DropFunctions();
236 DropFields(); 236 DropFields();
237 TraceTypesFromRetainedClasses(); 237 TraceTypesFromRetainedClasses();
238 DropTypes(); 238 DropTypes();
239 DropTypeArguments(); 239 DropTypeArguments();
240 240
241 // Clear these before dropping classes as they may hold onto otherwise 241 // Clear these before dropping classes as they may hold onto otherwise
242 // dead instances of classes we will remove. 242 // dead instances of classes we will remove.
243 I->object_store()->set_compile_time_constants(Array::null_array()); 243 I->object_store()->set_compile_time_constants(Array::null_array());
244 I->object_store()->set_unique_dynamic_targets(Array::null_array()); 244 I->object_store()->set_unique_dynamic_targets(Array::null_array());
245 Class& null_class = Class::Handle(Z);
246 I->object_store()->set_future_class(null_class);
247 I->object_store()->set_completer_class(null_class);
248 I->object_store()->set_stream_iterator_class(null_class);
249 I->object_store()->set_symbol_class(null_class);
245 250
246 DropClasses(); 251 DropClasses();
247 DropLibraries(); 252 DropLibraries();
248 253
249 BindStaticCalls(); 254 BindStaticCalls();
250 SwitchICCalls(); 255 SwitchICCalls();
251 256
252 DedupStackmaps(); 257 DedupStackmaps();
253 DedupStackmapLists(); 258 DedupStackmapLists();
254 259
(...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 CompilationPipeline::New(thread->zone(), function); 2843 CompilationPipeline::New(thread->zone(), function);
2839 2844
2840 ASSERT(FLAG_precompiled_mode); 2845 ASSERT(FLAG_precompiled_mode);
2841 const bool optimized = function.IsOptimizable(); // False for natives. 2846 const bool optimized = function.IsOptimizable(); // False for natives.
2842 return PrecompileFunctionHelper(pipeline, function, optimized); 2847 return PrecompileFunctionHelper(pipeline, function, optimized);
2843 } 2848 }
2844 2849
2845 #endif // DART_PRECOMPILER 2850 #endif // DART_PRECOMPILER
2846 2851
2847 } // namespace dart 2852 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698