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

Side by Side Diff: runtime/lib/mirrors.cc

Issue 19289002: Fix the build on 64-bit. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_debugger_api.h" 6 #include "include/dart_debugger_api.h"
7 #include "include/dart_mirrors_api.h" 7 #include "include/dart_mirrors_api.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_api_state.h" // TODO(11742): Remove with CreateMirrorRef. 9 #include "vm/dart_api_state.h" // TODO(11742): Remove with CreateMirrorRef.
10 #include "vm/bootstrap_natives.h" 10 #include "vm/bootstrap_natives.h"
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 // TODO(11771): This won't find private members. 1469 // TODO(11771): This won't find private members.
1470 const Function& function = Function::Handle( 1470 const Function& function = Function::Handle(
1471 Resolver::ResolveStatic(klass, 1471 Resolver::ResolveStatic(klass,
1472 function_name, 1472 function_name,
1473 number_of_arguments, 1473 number_of_arguments,
1474 Object::empty_array(), 1474 Object::empty_array(),
1475 Resolver::kIsQualified)); 1475 Resolver::kIsQualified));
1476 if (function.IsNull()) { 1476 if (function.IsNull()) {
1477 const String& klass_name = String::Handle(klass.Name()); 1477 const String& klass_name = String::Handle(klass.Name());
1478 const String& message = String::Handle( 1478 const String& message = String::Handle(
1479 String::NewFormatted("%s: did not find %d-arg static method '%s.%s'.", 1479 String::NewFormatted("%s: did not find static method '%s.%s'.",
regis 2013/07/15 22:34:26 FYI, instead of "find %d-arg", you would write "f
1480 "ClassMirror_invoke", 1480 "ClassMirror_invoke",
1481 number_of_arguments,
1482 klass_name.ToCString(), 1481 klass_name.ToCString(),
1483 function_name.ToCString())); 1482 function_name.ToCString()));
1484 ThrowMirroredCompilationError(message); 1483 ThrowMirroredCompilationError(message);
1485 UNREACHABLE(); 1484 UNREACHABLE();
1486 } 1485 }
1487 Object& result = Object::Handle(DartEntry::InvokeFunction(function, 1486 Object& result = Object::Handle(DartEntry::InvokeFunction(function,
1488 positional_args)); 1487 positional_args));
1489 if (result.IsError()) { 1488 if (result.IsError()) {
1490 ThrowInvokeError(Error::Cast(result)); 1489 ThrowInvokeError(Error::Cast(result));
1491 UNREACHABLE(); 1490 UNREACHABLE();
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 1818
1820 DEFINE_NATIVE_ENTRY(MethodMirror_name, 1) { 1819 DEFINE_NATIVE_ENTRY(MethodMirror_name, 1) {
1821 const MirrorReference& func_ref = 1820 const MirrorReference& func_ref =
1822 MirrorReference::CheckedHandle(arguments->NativeArgAt(0)); 1821 MirrorReference::CheckedHandle(arguments->NativeArgAt(0));
1823 Function& func = Function::Handle(); 1822 Function& func = Function::Handle();
1824 func ^= func_ref.referent(); 1823 func ^= func_ref.referent();
1825 return func.UserVisibleName(); 1824 return func.UserVisibleName();
1826 } 1825 }
1827 1826
1828 } // namespace dart 1827 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698