| 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 "platform/assert.h" | 5 #include "platform/assert.h" |
| 6 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/object_store.h" | 10 #include "vm/object_store.h" |
| (...skipping 2813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2824 "\n" | 2824 "\n" |
| 2825 "void _bar() {\n" | 2825 "void _bar() {\n" |
| 2826 " globalVar = null;\n" | 2826 " globalVar = null;\n" |
| 2827 "}\n" | 2827 "}\n" |
| 2828 "\n" | 2828 "\n" |
| 2829 "class MyClass {\n" | 2829 "class MyClass {\n" |
| 2830 " MyClass() {\n" | 2830 " MyClass() {\n" |
| 2831 " (() => foo())();\n" | 2831 " (() => foo())();\n" |
| 2832 " }\n" | 2832 " }\n" |
| 2833 "\n" | 2833 "\n" |
| 2834 " static get field() {\n" | 2834 " static get field {\n" |
| 2835 " _bar();\n" | 2835 " _bar();\n" |
| 2836 " }\n" | 2836 " }\n" |
| 2837 "\n" | 2837 "\n" |
| 2838 " static foo() {\n" | 2838 " static foo() {\n" |
| 2839 " fooHelper() {\n" | 2839 " fooHelper() {\n" |
| 2840 " field;\n" | 2840 " field;\n" |
| 2841 " }\n" | 2841 " }\n" |
| 2842 " fooHelper();\n" | 2842 " fooHelper();\n" |
| 2843 " }\n" | 2843 " }\n" |
| 2844 "}\n" | 2844 "}\n" |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3108 isolate->heap()->CollectAllGarbage(); | 3108 isolate->heap()->CollectAllGarbage(); |
| 3109 EXPECT(weak1.key() == Object::null()); | 3109 EXPECT(weak1.key() == Object::null()); |
| 3110 EXPECT(weak1.value() == Object::null()); | 3110 EXPECT(weak1.value() == Object::null()); |
| 3111 EXPECT(weak2.key() == Object::null()); | 3111 EXPECT(weak2.key() == Object::null()); |
| 3112 EXPECT(weak2.value() == Object::null()); | 3112 EXPECT(weak2.value() == Object::null()); |
| 3113 } | 3113 } |
| 3114 | 3114 |
| 3115 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). | 3115 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). |
| 3116 | 3116 |
| 3117 } // namespace dart | 3117 } // namespace dart |
| OLD | NEW |