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

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

Issue 2548943002: VM: Treat dynamic calls consistently in the treeshaker. (Closed)
Patch Set: Created 4 years 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/precompiler.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 (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 #ifndef RUNTIME_VM_PRECOMPILER_H_ 5 #ifndef RUNTIME_VM_PRECOMPILER_H_
6 #define RUNTIME_VM_PRECOMPILER_H_ 6 #define RUNTIME_VM_PRECOMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/hash_map.h" 9 #include "vm/hash_map.h"
10 #include "vm/hash_table.h" 10 #include "vm/hash_table.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]); 361 void AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]);
362 void AddEntryPoints(Dart_QualifiedFunctionName entry_points[]); 362 void AddEntryPoints(Dart_QualifiedFunctionName entry_points[]);
363 void Iterate(); 363 void Iterate();
364 364
365 void AddType(const AbstractType& type); 365 void AddType(const AbstractType& type);
366 void AddTypesOf(const Class& cls); 366 void AddTypesOf(const Class& cls);
367 void AddTypesOf(const Function& function); 367 void AddTypesOf(const Function& function);
368 void AddTypeArguments(const TypeArguments& args); 368 void AddTypeArguments(const TypeArguments& args);
369 void AddCalleesOf(const Function& function); 369 void AddCalleesOf(const Function& function);
370 void AddConstObject(const Instance& instance); 370 void AddConstObject(const Instance& instance);
371 void AddClosureCall(const ICData& call_site); 371 void AddClosureCall(const Array& arguments_descriptor);
372 void AddField(const Field& field); 372 void AddField(const Field& field);
373 void AddFunction(const Function& function); 373 void AddFunction(const Function& function);
374 void AddInstantiatedClass(const Class& cls); 374 void AddInstantiatedClass(const Class& cls);
375 void AddSelector(const String& selector); 375 void AddSelector(const String& selector);
376 bool IsSent(const String& selector); 376 bool IsSent(const String& selector);
377 377
378 void ProcessFunction(const Function& function); 378 void ProcessFunction(const Function& function);
379 void CheckForNewDynamicFunctions(); 379 void CheckForNewDynamicFunctions();
380 void TraceConstFunctions(); 380 void TraceConstFunctions();
381 void CollectCallbackFields(); 381 void CollectCallbackFields();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 } 481 }
482 static RawObject* NewKey(const Function& function) { return function.raw(); } 482 static RawObject* NewKey(const Function& function) { return function.raw(); }
483 }; 483 };
484 484
485 typedef UnorderedHashSet<FunctionsTraits> UniqueFunctionsSet; 485 typedef UnorderedHashSet<FunctionsTraits> UniqueFunctionsSet;
486 486
487 487
488 } // namespace dart 488 } // namespace dart
489 489
490 #endif // RUNTIME_VM_PRECOMPILER_H_ 490 #endif // RUNTIME_VM_PRECOMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698