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

Unified Diff: runtime/vm/object.h

Issue 1295973002: Store the RegExp and the string specialization cid in an Array in RawFunction::data_. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 32bcaac1b9c9a9e7021464ec842c77a7e0b24086..6a993101f83e86fcad90d60d473d21e68af83111 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2104,13 +2104,10 @@ class Function : public Object {
RawClass* origin() const;
RawScript* script() const;
- void set_regexp(const JSRegExp& value) const;
RawJSRegExp* regexp() const;
-
- // Get and set the class id this function is specialized for. Only set for
- // irregexp functions.
- intptr_t regexp_cid() const { return raw_ptr()->regexp_cid_; }
- void set_regexp_cid(intptr_t regexp_cid) const;
+ intptr_t string_specialization_cid() const;
+ void SetRegExpData(const JSRegExp& regexp,
+ intptr_t string_specialization_cid) const;
RawAbstractType* result_type() const { return raw_ptr()->result_type_; }
void set_result_type(const AbstractType& value) const;
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698