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

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

Issue 12328019: - Improve the message for NoSuchMethodErrors that are (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.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) 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/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 RawFunction* Class::LookupConstructor(const String& name) const { 2348 RawFunction* Class::LookupConstructor(const String& name) const {
2349 Function& function = Function::Handle(LookupFunction(name)); 2349 Function& function = Function::Handle(LookupFunction(name));
2350 if (function.IsNull() || !function.IsConstructor()) { 2350 if (function.IsNull() || !function.IsConstructor()) {
2351 return Function::null(); 2351 return Function::null();
2352 } 2352 }
2353 ASSERT(!function.is_static()); 2353 ASSERT(!function.is_static());
2354 return function.raw(); 2354 return function.raw();
2355 } 2355 }
2356 2356
2357 2357
2358 RawFunction* Class::LookupConstructorAllowPrivate(const String& name) const {
2359 Function& function = Function::Handle(LookupFunctionAllowPrivate(name));
2360 if (function.IsNull() || !function.IsConstructor()) {
2361 return Function::null();
2362 }
2363 ASSERT(!function.is_static());
2364 return function.raw();
2365 }
2366
2367
2358 RawFunction* Class::LookupFactory(const String& name) const { 2368 RawFunction* Class::LookupFactory(const String& name) const {
2359 Function& function = Function::Handle(LookupFunction(name)); 2369 Function& function = Function::Handle(LookupFunction(name));
2360 if (function.IsNull() || !function.IsFactory()) { 2370 if (function.IsNull() || !function.IsFactory()) {
2361 return Function::null(); 2371 return Function::null();
2362 } 2372 }
2363 ASSERT(function.is_static()); 2373 ASSERT(function.is_static());
2364 return function.raw(); 2374 return function.raw();
2365 } 2375 }
2366 2376
2367 2377
(...skipping 10523 matching lines...) Expand 10 before | Expand all | Expand 10 after
12891 } 12901 }
12892 return result.raw(); 12902 return result.raw();
12893 } 12903 }
12894 12904
12895 12905
12896 const char* WeakProperty::ToCString() const { 12906 const char* WeakProperty::ToCString() const {
12897 return "_WeakProperty"; 12907 return "_WeakProperty";
12898 } 12908 }
12899 12909
12900 } // namespace dart 12910 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698