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

Unified Diff: runtime/vm/intermediate_language.h

Issue 12377082: Recognize more list factories. Recognizing list factories (Array, Bytearrays, etc) allows the type … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 19395)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -2589,7 +2589,7 @@
argument_names_(argument_names),
arguments_(arguments),
result_cid_(kDynamicCid),
- is_known_constructor_(false) {
+ is_known_list_constructor_(false) {
ASSERT(function.IsZoneHandle());
ASSERT(argument_names.IsZoneHandle());
}
@@ -2615,9 +2615,9 @@
void set_result_cid(intptr_t value) { result_cid_ = value; }
- bool is_known_constructor() const { return is_known_constructor_; }
- void set_is_known_constructor(bool is_known_constructor) {
- is_known_constructor_ = is_known_constructor;
+ bool is_known_list_constructor() const { return is_known_list_constructor_; }
+ void set_is_known_list_constructor(bool value) {
+ is_known_list_constructor_ = value;
}
private:
@@ -2627,8 +2627,8 @@
ZoneGrowableArray<PushArgumentInstr*>* arguments_;
intptr_t result_cid_; // For some library functions we know the result.
- // Some library constructors have known semantics.
- bool is_known_constructor_;
+ // 'True' for recognized list constructors.
+ bool is_known_list_constructor_;
DISALLOW_COPY_AND_ASSIGN(StaticCallInstr);
};
@@ -3204,6 +3204,8 @@
static MethodRecognizer::Kind RecognizedKindFromArrayCid(intptr_t cid);
+ static bool IsFixedLengthArrayCid(intptr_t cid);
+
private:
const intptr_t offset_in_bytes_;
const AbstractType& type_;
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698