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

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

Issue 81333003: Do not eagerly finalize classes in CHA, instead regard unfinalized classes as ’non-existent’ an… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
OLDNEW
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/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 28 matching lines...) Expand all
39 String::New("dart-test:DartStaticResolve") : 39 String::New("dart-test:DartStaticResolve") :
40 String::New("dart-test:DartDynamicResolve")); 40 String::New("dart-test:DartDynamicResolve"));
41 String& source = String::Handle(String::New(script_chars)); 41 String& source = String::Handle(String::New(script_chars));
42 Script& script = Script::Handle(Script::New(url, 42 Script& script = Script::Handle(Script::New(url,
43 source, 43 source,
44 RawScript::kScriptTag)); 44 RawScript::kScriptTag));
45 const String& lib_name = String::Handle(String::New(test_library_name)); 45 const String& lib_name = String::Handle(String::New(test_library_name));
46 Library& lib = Library::Handle(Library::New(lib_name)); 46 Library& lib = Library::Handle(Library::New(lib_name));
47 lib.Register(); 47 lib.Register();
48 EXPECT(CompilerTest::TestCompileScript(lib, script)); 48 EXPECT(CompilerTest::TestCompileScript(lib, script));
49 EXPECT(ClassFinalizer::FinalizePendingClasses()); 49 EXPECT(ClassFinalizer::FinalizeTypeHierarchy());
50 } 50 }
51 51
52 52
53 // Setup a static function for invocation. 53 // Setup a static function for invocation.
54 static void SetupStaticFunction(const char* test_library_name, 54 static void SetupStaticFunction(const char* test_library_name,
55 const char* test_class_name, 55 const char* test_class_name,
56 const char* test_static_function_name) { 56 const char* test_static_function_name) {
57 // Setup a static dart class and function. 57 // Setup a static dart class and function.
58 SetupFunction(test_library_name, 58 SetupFunction(test_library_name,
59 test_class_name, 59 test_class_name,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 String::Handle(String::New("dynCall")); 206 String::Handle(String::New("dynCall"));
207 const Function& super_function = Function::Handle( 207 const Function& super_function = Function::Handle(
208 Resolver::ResolveDynamic(receiver, 208 Resolver::ResolveDynamic(receiver,
209 super_function_name, 209 super_function_name,
210 args_desc)); 210 args_desc));
211 EXPECT(!super_function.IsNull()); 211 EXPECT(!super_function.IsNull());
212 } 212 }
213 } 213 }
214 214
215 } // namespace dart 215 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698