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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10933019: Improve moves of Smi and null objects. Add result cid to List constructor calls. Add tracing of inl… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 12183)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1985,7 +1985,8 @@
function_(function),
argument_names_(argument_names),
arguments_(arguments),
- recognized_(MethodRecognizer::kUnknown) {
+ recognized_(MethodRecognizer::kUnknown),
+ result_cid_(kDynamicCid) {
ASSERT(function.IsZoneHandle());
ASSERT(argument_names.IsZoneHandle());
}
@@ -2009,7 +2010,8 @@
virtual void PrintOperandsTo(BufferFormatter* f) const;
virtual bool CanDeoptimize() const { return true; }
- virtual intptr_t ResultCid() const { return kDynamicCid; }
+ virtual intptr_t ResultCid() const { return result_cid_; }
+ void set_result_cid(intptr_t value) { result_cid_ = value; }
private:
const intptr_t token_pos_;
@@ -2017,6 +2019,7 @@
const Array& argument_names_;
ZoneGrowableArray<PushArgumentInstr*>* arguments_;
MethodRecognizer::Kind recognized_;
+ intptr_t result_cid_; // For some library functions we know the result.
DISALLOW_COPY_AND_ASSIGN(StaticCallInstr);
};

Powered by Google App Engine
This is Rietveld 408576698