| 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/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/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3227 " @metafoo \n" | 3227 " @metafoo \n" |
| 3228 " @metabar \n" | 3228 " @metabar \n" |
| 3229 " @Meta('baz') \n" | 3229 " @Meta('baz') \n" |
| 3230 " var aField; \n" | 3230 " var aField; \n" |
| 3231 " \n" | 3231 " \n" |
| 3232 " @metabar @Meta('baa') \n" | 3232 " @metabar @Meta('baa') \n" |
| 3233 " int aFunc(a,b) => a + b; \n" | 3233 " int aFunc(a,b) => a + b; \n" |
| 3234 "} \n" | 3234 "} \n" |
| 3235 " \n" | 3235 " \n" |
| 3236 "@Meta('main') \n" | 3236 "@Meta('main') \n" |
| 3237 "void main() { \n" | 3237 "A main() { \n" |
| 3238 " return new A(); \n" | 3238 " return new A(); \n" |
| 3239 "} \n"; | 3239 "} \n"; |
| 3240 | 3240 |
| 3241 Dart_Handle h_lib = TestCase::LoadTestScript(kScriptChars, NULL); | 3241 Dart_Handle h_lib = TestCase::LoadTestScript(kScriptChars, NULL); |
| 3242 EXPECT_VALID(h_lib); | 3242 EXPECT_VALID(h_lib); |
| 3243 Dart_Handle result = Dart_Invoke(h_lib, NewString("main"), 0, NULL); | 3243 Dart_Handle result = Dart_Invoke(h_lib, NewString("main"), 0, NULL); |
| 3244 EXPECT_VALID(result); | 3244 EXPECT_VALID(result); |
| 3245 Library& lib = Library::Handle(); | 3245 Library& lib = Library::Handle(); |
| 3246 lib ^= Api::UnwrapHandle(h_lib); | 3246 lib ^= Api::UnwrapHandle(h_lib); |
| 3247 ASSERT(!lib.IsNull()); | 3247 ASSERT(!lib.IsNull()); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3321 const Function& test7 = Function::Handle(GetFunction(class_a, "test7")); | 3321 const Function& test7 = Function::Handle(GetFunction(class_a, "test7")); |
| 3322 EXPECT_EQ(test1.SourceFingerprint(), test2.SourceFingerprint()); | 3322 EXPECT_EQ(test1.SourceFingerprint(), test2.SourceFingerprint()); |
| 3323 EXPECT_NE(test1.SourceFingerprint(), test3.SourceFingerprint()); | 3323 EXPECT_NE(test1.SourceFingerprint(), test3.SourceFingerprint()); |
| 3324 EXPECT_NE(test3.SourceFingerprint(), test4.SourceFingerprint()); | 3324 EXPECT_NE(test3.SourceFingerprint(), test4.SourceFingerprint()); |
| 3325 EXPECT_NE(test4.SourceFingerprint(), test5.SourceFingerprint()); | 3325 EXPECT_NE(test4.SourceFingerprint(), test5.SourceFingerprint()); |
| 3326 EXPECT_NE(test5.SourceFingerprint(), test6.SourceFingerprint()); | 3326 EXPECT_NE(test5.SourceFingerprint(), test6.SourceFingerprint()); |
| 3327 EXPECT_EQ(test6.SourceFingerprint(), test7.SourceFingerprint()); | 3327 EXPECT_EQ(test6.SourceFingerprint(), test7.SourceFingerprint()); |
| 3328 } | 3328 } |
| 3329 | 3329 |
| 3330 } // namespace dart | 3330 } // namespace dart |
| OLD | NEW |