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

Unified Diff: runtime/vm/intermediate_language.h

Issue 563973004: Call special VM interpolate for single element interpolation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 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
« 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
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 32f546399ce0ea7ac51c89990ee7bbfdc697486a..43259525404313dd9dc516b2faa3a75464c6894b 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -3800,8 +3800,10 @@ class StringToCharCodeInstr : public TemplateDefinition<1> {
class StringInterpolateInstr : public TemplateDefinition<1> {
public:
- StringInterpolateInstr(Value* value, intptr_t token_pos)
- : token_pos_(token_pos), function_(Function::Handle()) {
+ StringInterpolateInstr(Value* value, intptr_t token_pos, bool is_singleton)
+ : token_pos_(token_pos),
+ function_(Function::Handle()),
+ is_singleton_(is_singleton) {
SetInputAt(0, value);
}
@@ -3823,6 +3825,7 @@ class StringInterpolateInstr : public TemplateDefinition<1> {
private:
const intptr_t token_pos_;
Function& function_;
+ const bool is_singleton_;
DISALLOW_COPY_AND_ASSIGN(StringInterpolateInstr);
};
« 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