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

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

Issue 2612043002: Fixes to patch files necessary to use the analyzer (Closed)
Patch Set: Created 3 years, 11 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 "lib/mirrors.h" 5 #include "lib/mirrors.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/bootstrap_natives.h" 8 #include "vm/bootstrap_natives.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 Object& explicit_argument = Object::Handle(); 1660 Object& explicit_argument = Object::Handle();
1661 for (int i = 0; i < num_explicit_args; i++) { 1661 for (int i = 0; i < num_explicit_args; i++) {
1662 explicit_argument = explicit_args.At(i); 1662 explicit_argument = explicit_args.At(i);
1663 args.SetAt(i + num_implicit_args, explicit_argument); 1663 args.SetAt(i + num_implicit_args, explicit_argument);
1664 } 1664 }
1665 1665
1666 const Array& args_descriptor_array = 1666 const Array& args_descriptor_array =
1667 Array::Handle(ArgumentsDescriptor::New(args.Length(), arg_names)); 1667 Array::Handle(ArgumentsDescriptor::New(args.Length(), arg_names));
1668 1668
1669 ArgumentsDescriptor args_descriptor(args_descriptor_array); 1669 ArgumentsDescriptor args_descriptor(args_descriptor_array);
1670 if (!redirected_constructor.AreValidArguments(args_descriptor, NULL) || 1670 if (!redirected_constructor.AreValidArguments(args_descriptor, NULL)) {
Kevin Millikin (Google) 2017/01/04 15:31:04 We have already checked above (line 1600) that loo
1671 !redirected_constructor.is_reflectable()) {
1672 external_constructor_name = redirected_constructor.name(); 1671 external_constructor_name = redirected_constructor.name();
1673 ThrowNoSuchMethod(AbstractType::Handle(klass.RareType()), 1672 ThrowNoSuchMethod(AbstractType::Handle(klass.RareType()),
1674 external_constructor_name, redirected_constructor, 1673 external_constructor_name, redirected_constructor,
1675 explicit_args, arg_names, InvocationMirror::kConstructor, 1674 explicit_args, arg_names, InvocationMirror::kConstructor,
1676 InvocationMirror::kMethod); 1675 InvocationMirror::kMethod);
1677 UNREACHABLE(); 1676 UNREACHABLE();
1678 } 1677 }
1679 1678
1680 Instance& new_object = Instance::Handle(); 1679 Instance& new_object = Instance::Handle();
1681 if (redirected_constructor.IsGenerativeConstructor()) { 1680 if (redirected_constructor.IsGenerativeConstructor()) {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 2016
2018 DEFINE_NATIVE_ENTRY(TypeMirror_subtypeTest, 2) { 2017 DEFINE_NATIVE_ENTRY(TypeMirror_subtypeTest, 2) {
2019 GET_NON_NULL_NATIVE_ARGUMENT(AbstractType, a, arguments->NativeArgAt(0)); 2018 GET_NON_NULL_NATIVE_ARGUMENT(AbstractType, a, arguments->NativeArgAt(0));
2020 GET_NON_NULL_NATIVE_ARGUMENT(AbstractType, b, arguments->NativeArgAt(1)); 2019 GET_NON_NULL_NATIVE_ARGUMENT(AbstractType, b, arguments->NativeArgAt(1));
2021 return Bool::Get(a.IsSubtypeOf(b, NULL, NULL, Heap::kNew)).raw(); 2020 return Bool::Get(a.IsSubtypeOf(b, NULL, NULL, Heap::kNew)).raw();
2022 } 2021 }
2023 2022
2024 #endif // !PRODUCT 2023 #endif // !PRODUCT
2025 2024
2026 } // namespace dart 2025 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698