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

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

Issue 2897803002: VM: Constant fold more loads from constants in the optimizer. (Closed)
Patch Set: Created 3 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 | « runtime/vm/intermediate_language.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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 cls = isolate()->class_table()->At(cid); 643 cls = isolate()->class_table()->At(cid);
644 AddInstantiatedClass(cls); 644 AddInstantiatedClass(cls);
645 } 645 }
646 646
647 Dart_QualifiedFunctionName vm_entry_points[] = { 647 Dart_QualifiedFunctionName vm_entry_points[] = {
648 // Functions 648 // Functions
649 {"dart:core", "::", "_completeDeferredLoads"}, 649 {"dart:core", "::", "_completeDeferredLoads"},
650 {"dart:core", "AbstractClassInstantiationError", 650 {"dart:core", "AbstractClassInstantiationError",
651 "AbstractClassInstantiationError._create"}, 651 "AbstractClassInstantiationError._create"},
652 {"dart:core", "ArgumentError", "ArgumentError."}, 652 {"dart:core", "ArgumentError", "ArgumentError."},
653 {"dart:core", "ArgumentError", "ArgumentError.value"},
653 {"dart:core", "CyclicInitializationError", "CyclicInitializationError."}, 654 {"dart:core", "CyclicInitializationError", "CyclicInitializationError."},
654 {"dart:core", "FallThroughError", "FallThroughError._create"}, 655 {"dart:core", "FallThroughError", "FallThroughError._create"},
655 {"dart:core", "FormatException", "FormatException."}, 656 {"dart:core", "FormatException", "FormatException."},
656 {"dart:core", "NoSuchMethodError", "NoSuchMethodError._withType"}, 657 {"dart:core", "NoSuchMethodError", "NoSuchMethodError._withType"},
657 {"dart:core", "NullThrownError", "NullThrownError."}, 658 {"dart:core", "NullThrownError", "NullThrownError."},
658 {"dart:core", "OutOfMemoryError", "OutOfMemoryError."}, 659 {"dart:core", "OutOfMemoryError", "OutOfMemoryError."},
659 {"dart:core", "RangeError", "RangeError."}, 660 {"dart:core", "RangeError", "RangeError."},
660 {"dart:core", "RangeError", "RangeError.range"}, 661 {"dart:core", "RangeError", "RangeError.range"},
661 {"dart:core", "StackOverflowError", "StackOverflowError."}, 662 {"dart:core", "StackOverflowError", "StackOverflowError."},
662 {"dart:core", "UnsupportedError", "UnsupportedError."}, 663 {"dart:core", "UnsupportedError", "UnsupportedError."},
(...skipping 2700 matching lines...) Expand 10 before | Expand all | Expand 10 after
3363 3364
3364 ASSERT(FLAG_precompiled_mode); 3365 ASSERT(FLAG_precompiled_mode);
3365 const bool optimized = function.IsOptimizable(); // False for natives. 3366 const bool optimized = function.IsOptimizable(); // False for natives.
3366 DartPrecompilationPipeline pipeline(zone, field_type_map); 3367 DartPrecompilationPipeline pipeline(zone, field_type_map);
3367 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); 3368 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized);
3368 } 3369 }
3369 3370
3370 #endif // DART_PRECOMPILER 3371 #endif // DART_PRECOMPILER
3371 3372
3372 } // namespace dart 3373 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698