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

Unified Diff: vm/heap_test.cc

Issue 10021072: Remove the deprecated method invocation and field access apis from the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/exceptions_test.cc ('k') | vm/isolate_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/heap_test.cc
===================================================================
--- vm/heap_test.cc (revision 6767)
+++ vm/heap_test.cc (working copy)
@@ -13,17 +13,14 @@
#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
TEST_CASE(OldGC) {
const char* kScriptChars =
- "class HeapTester {\n"
- " static void main() {\n"
- " return [1, 2, 3];\n"
- " }\n"
+ "void main() {\n"
+ " return [1, 2, 3];\n"
"}\n";
FLAG_verbose_gc = true;
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
- Dart_Handle result = Dart_InvokeStatic(lib,
- Dart_NewString("HeapTester"),
- Dart_NewString("main"),
- 0, NULL);
+ Dart_Handle result = Dart_Invoke(lib,
+ Dart_NewString("main"),
+ 0, NULL);
EXPECT_VALID(result);
EXPECT(!Dart_IsNull(result));
@@ -36,18 +33,15 @@
TEST_CASE(LargeSweep) {
const char* kScriptChars =
- "class HeapTester {\n"
- " static void main() {\n"
- " return new List(8 * 1024 * 1024);\n"
- " }\n"
+ "void main() {\n"
+ " return new List(8 * 1024 * 1024);\n"
"}\n";
FLAG_verbose_gc = true;
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
Dart_EnterScope();
- Dart_Handle result = Dart_InvokeStatic(lib,
- Dart_NewString("HeapTester"),
- Dart_NewString("main"),
- 0, NULL);
+ Dart_Handle result = Dart_Invoke(lib,
+ Dart_NewString("main"),
+ 0, NULL);
EXPECT_VALID(result);
EXPECT(!Dart_IsNull(result));
« no previous file with comments | « vm/exceptions_test.cc ('k') | vm/isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698