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

Side by Side Diff: vm/resolver_test.cc

Issue 10808064: Rename some of the enum definitions inside classes to avoid conflict with the ObjectKind enum. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « vm/raw_object.h ('k') | vm/runtime_entry_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) 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 23 matching lines...) Expand all
34 " %s %s(String s, int i) { return i; }\n" 34 " %s %s(String s, int i) { return i; }\n"
35 "}\n", 35 "}\n",
36 test_class_name, 36 test_class_name,
37 is_static ? "static" : "", 37 is_static ? "static" : "",
38 test_static_function_name); 38 test_static_function_name);
39 39
40 String& url = String::Handle(is_static ? 40 String& url = String::Handle(is_static ?
41 String::New("dart-test:DartStaticResolve") : 41 String::New("dart-test:DartStaticResolve") :
42 String::New("dart-test:DartDynamicResolve")); 42 String::New("dart-test:DartDynamicResolve"));
43 String& source = String::Handle(String::New(script_chars)); 43 String& source = String::Handle(String::New(script_chars));
44 Script& script = Script::Handle(Script::New(url, source, RawScript::kScript)); 44 Script& script = Script::Handle(Script::New(url,
45 source,
46 RawScript::kScriptTag));
45 const String& lib_name = String::Handle(String::New(test_library_name)); 47 const String& lib_name = String::Handle(String::New(test_library_name));
46 Library& lib = Library::Handle(Library::New(lib_name)); 48 Library& lib = Library::Handle(Library::New(lib_name));
47 lib.Register(); 49 lib.Register();
48 EXPECT(CompilerTest::TestCompileScript(lib, script)); 50 EXPECT(CompilerTest::TestCompileScript(lib, script));
49 EXPECT(ClassFinalizer::FinalizePendingClasses()); 51 EXPECT(ClassFinalizer::FinalizePendingClasses());
50 } 52 }
51 53
52 54
53 // Setup a static function for invocation. 55 // Setup a static function for invocation.
54 static void SetupStaticFunction(const char* test_library_name, 56 static void SetupStaticFunction(const char* test_library_name,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 super_function_name, 221 super_function_name,
220 kNumPositionalArguments, 222 kNumPositionalArguments,
221 kNumNamedArguments)); 223 kNumNamedArguments));
222 EXPECT(!super_function.IsNull()); 224 EXPECT(!super_function.IsNull());
223 } 225 }
224 } 226 }
225 227
226 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 228 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
227 229
228 } // namespace dart 230 } // namespace dart
OLDNEW
« no previous file with comments | « vm/raw_object.h ('k') | vm/runtime_entry_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698