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

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

Issue 1158673004: Do not eagerly add guarded leaf classes with CHA; do not add them for private names. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: typos in comments Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 3773 matching lines...) Expand 10 before | Expand all | Expand 10 after
3784 other_type_arguments, 3784 other_type_arguments,
3785 bound_error); 3785 bound_error);
3786 } 3786 }
3787 3787
3788 3788
3789 bool Class::IsTopLevel() const { 3789 bool Class::IsTopLevel() const {
3790 return Name() == Symbols::TopLevel().raw(); 3790 return Name() == Symbols::TopLevel().raw();
3791 } 3791 }
3792 3792
3793 3793
3794 bool Class::IsPrivate() const {
3795 return Library::IsPrivate(String::Handle(Name()));
3796 }
3797
3798
3794 RawFunction* Class::LookupDynamicFunction(const String& name) const { 3799 RawFunction* Class::LookupDynamicFunction(const String& name) const {
3795 return LookupFunction(name, kInstance); 3800 return LookupFunction(name, kInstance);
3796 } 3801 }
3797 3802
3798 3803
3799 RawFunction* Class::LookupDynamicFunctionAllowPrivate( 3804 RawFunction* Class::LookupDynamicFunctionAllowPrivate(
3800 const String& name) const { 3805 const String& name) const {
3801 return LookupFunctionAllowPrivate(name, kInstance); 3806 return LookupFunctionAllowPrivate(name, kInstance);
3802 } 3807 }
3803 3808
(...skipping 16989 matching lines...) Expand 10 before | Expand all | Expand 10 after
20793 return tag_label.ToCString(); 20798 return tag_label.ToCString();
20794 } 20799 }
20795 20800
20796 20801
20797 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20802 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20798 Instance::PrintJSONImpl(stream, ref); 20803 Instance::PrintJSONImpl(stream, ref);
20799 } 20804 }
20800 20805
20801 20806
20802 } // namespace dart 20807 } // namespace dart
OLDNEW
« runtime/vm/flow_graph_type_propagator.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698