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

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

Issue 8509031: Revert r1380 that is breaking frog. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/parser_test.cc ('k') | runtime/vm/snapshot_test.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/assembler.h" 5 #include "vm/assembler.h"
6 #include "vm/assert.h" 6 #include "vm/assert.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 27 matching lines...) Expand all
38 38
39 String& url = String::Handle(is_static ? 39 String& url = String::Handle(is_static ?
40 String::New("dart-test:DartStaticResolve") : 40 String::New("dart-test:DartStaticResolve") :
41 String::New("dart-test:DartDynamicResolve")); 41 String::New("dart-test:DartDynamicResolve"));
42 String& source = String::Handle(String::New(script_chars)); 42 String& source = String::Handle(String::New(script_chars));
43 Script& script = Script::Handle(Script::New(url, source, RawScript::kScript)); 43 Script& script = Script::Handle(Script::New(url, source, RawScript::kScript));
44 const String& lib_name = String::Handle(String::New(test_library_name)); 44 const String& lib_name = String::Handle(String::New(test_library_name));
45 Library& lib = Library::Handle(Library::New(lib_name)); 45 Library& lib = Library::Handle(Library::New(lib_name));
46 lib.Register(); 46 lib.Register();
47 EXPECT(CompilerTest::TestCompileScript(lib, script)); 47 EXPECT(CompilerTest::TestCompileScript(lib, script));
48 EXPECT(ClassFinalizer::FinalizeAllClasses()); 48 EXPECT(ClassFinalizer::FinalizePendingClasses());
49 } 49 }
50 50
51 51
52 // Setup a static function for invocation. 52 // Setup a static function for invocation.
53 static void SetupStaticFunction(const char* test_library_name, 53 static void SetupStaticFunction(const char* test_library_name,
54 const char* test_class_name, 54 const char* test_class_name,
55 const char* test_static_function_name) { 55 const char* test_static_function_name) {
56 // Setup a static dart class and function. 56 // Setup a static dart class and function.
57 SetupFunction(test_library_name, 57 SetupFunction(test_library_name,
58 test_class_name, 58 test_class_name,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 super_function_name, 218 super_function_name,
219 kNumPositionalArguments, 219 kNumPositionalArguments,
220 kNumNamedArguments)); 220 kNumNamedArguments));
221 EXPECT(!super_function.IsNull()); 221 EXPECT(!super_function.IsNull());
222 } 222 }
223 } 223 }
224 224
225 #endif // TARGET_ARCH_IA32. 225 #endif // TARGET_ARCH_IA32.
226 226
227 } // namespace dart 227 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser_test.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698