Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: runtime/vm/isolate_reload_test.cc

Issue 2997243002: Move all the isolate reload code under !defined(DART_PRECOMPILED_RUNTIME) (Closed)
Patch Set: Address code review comments. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate_reload.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_tools_api.h" 6 #include "include/dart_tools_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/lockers.h" 10 #include "vm/lockers.h"
11 #include "vm/thread_barrier.h" 11 #include "vm/thread_barrier.h"
12 #include "vm/thread_pool.h" 12 #include "vm/thread_pool.h"
13 #include "vm/unit_test.h" 13 #include "vm/unit_test.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 #ifndef PRODUCT 17 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
18 18
19 DECLARE_FLAG(bool, support_deprecated_tearoff_syntax); 19 DECLARE_FLAG(bool, support_deprecated_tearoff_syntax);
20 20
21 // TODO(johnmccutchan): 21 // TODO(johnmccutchan):
22 // - Tests involving generics. 22 // - Tests involving generics.
23 23
24 int64_t SimpleInvoke(Dart_Handle lib, const char* method) { 24 int64_t SimpleInvoke(Dart_Handle lib, const char* method) {
25 Dart_Handle result = Dart_Invoke(lib, NewString(method), 0, NULL); 25 Dart_Handle result = Dart_Invoke(lib, NewString(method), 0, NULL);
26 EXPECT_VALID(result); 26 EXPECT_VALID(result);
27 EXPECT(Dart_IsInteger(result)); 27 EXPECT(Dart_IsInteger(result));
(...skipping 3578 matching lines...) Expand 10 before | Expand all | Expand 10 after
3606 "main() {\n" 3606 "main() {\n"
3607 " bool foo(x) => true;\n" 3607 " bool foo(x) => true;\n"
3608 " return (foo is Predicate).toString();\n" 3608 " return (foo is Predicate).toString();\n"
3609 "}\n"; 3609 "}\n";
3610 3610
3611 Dart_Handle result = TestCase::ReloadTestScript(kReloadScript); 3611 Dart_Handle result = TestCase::ReloadTestScript(kReloadScript);
3612 EXPECT_VALID(result); 3612 EXPECT_VALID(result);
3613 EXPECT_STREQ("false", SimpleInvokeStr(lib, "main")); 3613 EXPECT_STREQ("false", SimpleInvokeStr(lib, "main"));
3614 } 3614 }
3615 3615
3616 #endif // !PRODUCT 3616 #endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
3617 3617
3618 } // namespace dart 3618 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate_reload.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698