| OLD | NEW |
| 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 // TODO(zra): Remove when tests are ready to enable. | |
| 6 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 7 #if !defined(TARGET_ARCH_ARM64) | |
| 8 | 6 |
| 9 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 10 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 11 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 12 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| 13 #include "vm/dart_entry.h" | 11 #include "vm/dart_entry.h" |
| 14 #include "vm/object.h" | 12 #include "vm/object.h" |
| 15 #include "vm/resolver.h" | 13 #include "vm/resolver.h" |
| 16 #include "vm/symbols.h" | 14 #include "vm/symbols.h" |
| 17 #include "vm/unit_test.h" | 15 #include "vm/unit_test.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 EXPECT(!function.IsNull()); | 106 EXPECT(!function.IsNull()); |
| 109 const Array& args = Array::Handle(Array::New(1)); | 107 const Array& args = Array::Handle(Array::New(1)); |
| 110 args.SetAt(0, instance); | 108 args.SetAt(0, instance); |
| 111 const Object& retval = Object::Handle(DartEntry::InvokeFunction(function, | 109 const Object& retval = Object::Handle(DartEntry::InvokeFunction(function, |
| 112 args)); | 110 args)); |
| 113 EXPECT(retval.IsError()); | 111 EXPECT(retval.IsError()); |
| 114 EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString()); | 112 EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString()); |
| 115 } | 113 } |
| 116 | 114 |
| 117 } // namespace dart | 115 } // namespace dart |
| 118 | |
| 119 #endif // !defined(TARGET_ARCH_ARM64) | |
| OLD | NEW |