| 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 #include "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 #include "platform/assert.h" | 6 #include "platform/assert.h" |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
| 9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
| 10 #include "vm/dart_api_message.h" | 10 #include "vm/dart_api_message.h" |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 const char* kScriptChars = | 910 const char* kScriptChars = |
| 911 "class Fields {\n" | 911 "class Fields {\n" |
| 912 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n" | 912 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n" |
| 913 " int fld1;\n" | 913 " int fld1;\n" |
| 914 " final int fld2;\n" | 914 " final int fld2;\n" |
| 915 " final int bigint_fld = 0xfffffffffff;\n" | 915 " final int bigint_fld = 0xfffffffffff;\n" |
| 916 " static int fld3;\n" | 916 " static int fld3;\n" |
| 917 " static const int smi_sfld = 10;\n" | 917 " static const int smi_sfld = 10;\n" |
| 918 " static const int bigint_sfld = 0xfffffffffff;\n" | 918 " static const int bigint_sfld = 0xfffffffffff;\n" |
| 919 "}\n" | 919 "}\n" |
| 920 "class Expect {\n" |
| 921 " static void equals(x, y) {\n" |
| 922 " if (x != y) throw new RuntimeError('not equal');\n" |
| 923 " }\n" |
| 924 "}\n" |
| 920 "class FieldsTest {\n" | 925 "class FieldsTest {\n" |
| 921 " static Fields testMain() {\n" | 926 " static Fields testMain() {\n" |
| 922 " Expect.equals(true, Fields.bigint_sfld == 0xfffffffffff);\n" | 927 " Expect.equals(true, Fields.bigint_sfld == 0xfffffffffff);\n" |
| 923 " Fields obj = new Fields(10, 20);\n" | 928 " Fields obj = new Fields(10, 20);\n" |
| 924 " Expect.equals(true, obj.bigint_fld == 0xfffffffffff);\n" | 929 " Expect.equals(true, obj.bigint_fld == 0xfffffffffff);\n" |
| 925 " return obj;\n" | 930 " return obj;\n" |
| 926 " }\n" | 931 " }\n" |
| 927 "}\n"; | 932 "}\n"; |
| 928 Dart_Handle result; | 933 Dart_Handle result; |
| 929 | 934 |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2205 EXPECT(Dart_ErrorHasException(result)); | 2210 EXPECT(Dart_ErrorHasException(result)); |
| 2206 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", | 2211 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", |
| 2207 Dart_GetError(result)); | 2212 Dart_GetError(result)); |
| 2208 | 2213 |
| 2209 Dart_ExitScope(); | 2214 Dart_ExitScope(); |
| 2210 } | 2215 } |
| 2211 | 2216 |
| 2212 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). | 2217 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). |
| 2213 | 2218 |
| 2214 } // namespace dart | 2219 } // namespace dart |
| OLD | NEW |