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

Unified Diff: runtime/vm/il_printer.cc

Issue 10827288: - Support for patching of class methods and fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/il_printer.cc
===================================================================
--- runtime/vm/il_printer.cc (revision 10615)
+++ runtime/vm/il_printer.cc (working copy)
@@ -89,8 +89,7 @@
const AbstractType& dst_type,
const String& dst_name,
bool eliminated) {
- const Class& cls = Class::Handle(parsed_function.function().owner());
- const Script& script = Script::Handle(cls.script());
+ const Script& script = Script::Handle(parsed_function.function().script());
const char* compile_type_name = "unknown";
if (value != NULL) {
const AbstractType& type = AbstractType::Handle(value->CompileType());
@@ -300,7 +299,7 @@
void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const {
- f->Print("%s", Class::Handle(constructor().owner()).ToCString());
+ f->Print("%s", Class::Handle(constructor().Owner()).ToCString());
for (intptr_t i = 0; i < ArgumentCount(); i++) {
f->Print(", ");
ArgumentAt(i)->value()->PrintTo(f);
@@ -310,7 +309,7 @@
void AllocateObjectWithBoundsCheckComp::PrintOperandsTo(
BufferFormatter* f) const {
- f->Print("%s", Class::Handle(constructor().owner()).ToCString());
+ f->Print("%s", Class::Handle(constructor().Owner()).ToCString());
for (intptr_t i = 0; i < InputCount(); i++) {
f->Print(", ");
InputAt(i)->PrintTo(f);

Powered by Google App Engine
This is Rietveld 408576698