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

Unified Diff: runtime/vm/code_descriptors_test.cc

Issue 10831142: Associate the correct type to method receivers (instead of Dynamic type). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/code_descriptors_test.cc
===================================================================
--- runtime/vm/code_descriptors_test.cc (revision 10199)
+++ runtime/vm/code_descriptors_test.cc (working copy)
@@ -24,13 +24,13 @@
CODEGEN_TEST_GENERATE(StackmapCodegen, test) {
Assembler assembler;
const String& function_name = String::ZoneHandle(Symbols::New("test"));
+ Class& cls = Class::ZoneHandle();
+ const Script& script = Script::Handle();
+ cls = Class::New(function_name, script, Scanner::kDummyTokenIndex);
const Function& function = Function::Handle(
Function::New(function_name, RawFunction::kRegularFunction,
- true, false, false, false, 0));
+ true, false, false, false, cls, 0));
function.set_result_type(Type::Handle(Type::DynamicType()));
- Class& cls = Class::ZoneHandle();
- const Script& script = Script::Handle();
- cls = Class::New(function_name, script, Scanner::kDummyTokenIndex);
const Array& functions = Array::Handle(Array::New(1));
functions.SetAt(0, function);
cls.SetFunctions(functions);

Powered by Google App Engine
This is Rietveld 408576698