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

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

Issue 2988493002: Reapply "Improve hashCode for closure objects" with fixes. (Closed)
Patch Set: Created 3 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/object.cc ('k') | 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 (cid == kFreeListElement) || (cid == kForwardingCorpse)) { 629 (cid == kFreeListElement) || (cid == kForwardingCorpse)) {
630 continue; 630 continue;
631 } 631 }
632 cls = isolate()->class_table()->At(cid); 632 cls = isolate()->class_table()->At(cid);
633 AddInstantiatedClass(cls); 633 AddInstantiatedClass(cls);
634 } 634 }
635 635
636 Dart_QualifiedFunctionName vm_entry_points[] = { 636 Dart_QualifiedFunctionName vm_entry_points[] = {
637 // Functions 637 // Functions
638 {"dart:core", "::", "_completeDeferredLoads"}, 638 {"dart:core", "::", "_completeDeferredLoads"},
639 {"dart:core", "::", "identityHashCode"},
639 {"dart:core", "AbstractClassInstantiationError", 640 {"dart:core", "AbstractClassInstantiationError",
640 "AbstractClassInstantiationError._create"}, 641 "AbstractClassInstantiationError._create"},
641 {"dart:core", "ArgumentError", "ArgumentError."}, 642 {"dart:core", "ArgumentError", "ArgumentError."},
642 {"dart:core", "ArgumentError", "ArgumentError.value"}, 643 {"dart:core", "ArgumentError", "ArgumentError.value"},
643 {"dart:core", "CyclicInitializationError", "CyclicInitializationError."}, 644 {"dart:core", "CyclicInitializationError", "CyclicInitializationError."},
644 {"dart:core", "FallThroughError", "FallThroughError._create"}, 645 {"dart:core", "FallThroughError", "FallThroughError._create"},
645 {"dart:core", "FormatException", "FormatException."}, 646 {"dart:core", "FormatException", "FormatException."},
646 {"dart:core", "NoSuchMethodError", "NoSuchMethodError._withType"}, 647 {"dart:core", "NoSuchMethodError", "NoSuchMethodError._withType"},
647 {"dart:core", "NullThrownError", "NullThrownError."}, 648 {"dart:core", "NullThrownError", "NullThrownError."},
648 {"dart:core", "OutOfMemoryError", "OutOfMemoryError."}, 649 {"dart:core", "OutOfMemoryError", "OutOfMemoryError."},
(...skipping 2676 matching lines...) Expand 10 before | Expand all | Expand 10 after
3325 3326
3326 ASSERT(FLAG_precompiled_mode); 3327 ASSERT(FLAG_precompiled_mode);
3327 const bool optimized = function.IsOptimizable(); // False for natives. 3328 const bool optimized = function.IsOptimizable(); // False for natives.
3328 DartPrecompilationPipeline pipeline(zone, field_type_map); 3329 DartPrecompilationPipeline pipeline(zone, field_type_map);
3329 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); 3330 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized);
3330 } 3331 }
3331 3332
3332 #endif // DART_PRECOMPILER 3333 #endif // DART_PRECOMPILER
3333 3334
3334 } // namespace dart 3335 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698