| OLD | NEW |
| 1 // Copyright (c) 2011, 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 "platform/assert.h" |
| 5 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
| 6 #include "vm/assert.h" | |
| 7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/resolver.h" | 10 #include "vm/resolver.h" |
| 11 #include "vm/unit_test.h" | 11 #include "vm/unit_test.h" |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 // Only ia32 and x64 can run execution tests. | 15 // Only ia32 and x64 can run execution tests. |
| 16 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) | 16 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 const Smi& retval = Smi::Handle( | 39 const Smi& retval = Smi::Handle( |
| 40 reinterpret_cast<RawSmi*>(DartEntry::InvokeStatic(function, | 40 reinterpret_cast<RawSmi*>(DartEntry::InvokeStatic(function, |
| 41 arguments, | 41 arguments, |
| 42 kNoArgumentNames))); | 42 kNoArgumentNames))); |
| 43 EXPECT_EQ(Smi::New(42), retval.raw()); | 43 EXPECT_EQ(Smi::New(42), retval.raw()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64. | 46 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64. |
| 47 | 47 |
| 48 } // namespace dart | 48 } // namespace dart |
| OLD | NEW |