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

Unified Diff: runtime/vm/code_patcher_ia32_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_patcher_ia32_test.cc
===================================================================
--- runtime/vm/code_patcher_ia32_test.cc (revision 10199)
+++ runtime/vm/code_patcher_ia32_test.cc (working copy)
@@ -48,15 +48,20 @@
#define __ assembler->
ASSEMBLER_TEST_GENERATE(IcDataAccess, assembler) {
+ const String& class_name = String::Handle(Symbols::New("ownerClass"));
+ const Script& script = Script::Handle();
+ const Class& owner_class =
+ Class::Handle(Class::New(class_name, script, Scanner::kDummyTokenIndex));
const String& function_name =
String::ZoneHandle(Symbols::New("callerFunction"));
const Function& function = Function::ZoneHandle(
Function::New(function_name, RawFunction::kRegularFunction,
- true, false, false, false, 0));
+ true, false, false, false, owner_class, 0));
const String& target_name = String::Handle(String::New("targetFunction"));
ICData& ic_data = ICData::ZoneHandle(
ICData::New(function, target_name, 15, 1));
+
__ LoadObject(ECX, ic_data);
__ LoadObject(EDX, DartEntry::ArgumentsDescriptor(1, Array::Handle()));
ExternalLabel target_label(

Powered by Google App Engine
This is Rietveld 408576698