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

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

Issue 2147493005: Remove per-isolate compile-time constants cache. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « runtime/vm/parser.cc ('k') | no next file » | 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 TraceForRetainedFunctions(); 235 TraceForRetainedFunctions();
236 DropFunctions(); 236 DropFunctions();
237 DropFields(); 237 DropFields();
238 TraceTypesFromRetainedClasses(); 238 TraceTypesFromRetainedClasses();
239 DropTypes(); 239 DropTypes();
240 DropTypeArguments(); 240 DropTypeArguments();
241 241
242 // Clear these before dropping classes as they may hold onto otherwise 242 // Clear these before dropping classes as they may hold onto otherwise
243 // dead instances of classes we will remove. 243 // dead instances of classes we will remove.
244 I->object_store()->set_vm_compile_time_constants(Array::null_array());
245 I->object_store()->set_unique_dynamic_targets(Array::null_array()); 244 I->object_store()->set_unique_dynamic_targets(Array::null_array());
246 Class& null_class = Class::Handle(Z); 245 Class& null_class = Class::Handle(Z);
247 I->object_store()->set_future_class(null_class); 246 I->object_store()->set_future_class(null_class);
248 I->object_store()->set_completer_class(null_class); 247 I->object_store()->set_completer_class(null_class);
249 I->object_store()->set_stream_iterator_class(null_class); 248 I->object_store()->set_stream_iterator_class(null_class);
250 I->object_store()->set_symbol_class(null_class); 249 I->object_store()->set_symbol_class(null_class);
251 } 250 }
252 DropClasses(); 251 DropClasses();
253 DropLibraries(); 252 DropLibraries();
254 253
(...skipping 2610 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 CompilationPipeline::New(thread->zone(), function); 2864 CompilationPipeline::New(thread->zone(), function);
2866 2865
2867 ASSERT(FLAG_precompiled_mode); 2866 ASSERT(FLAG_precompiled_mode);
2868 const bool optimized = function.IsOptimizable(); // False for natives. 2867 const bool optimized = function.IsOptimizable(); // False for natives.
2869 return PrecompileFunctionHelper(pipeline, function, optimized); 2868 return PrecompileFunctionHelper(pipeline, function, optimized);
2870 } 2869 }
2871 2870
2872 #endif // DART_PRECOMPILER 2871 #endif // DART_PRECOMPILER
2873 2872
2874 } // namespace dart 2873 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698