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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2783183002: Stream DoubleLiteral (Closed)
Patch Set: Created 3 years, 9 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
« runtime/vm/kernel_binary_flowgraph.cc ('K') | « runtime/vm/kernel_to_il.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index 4ef5572e973ebd63ed0a80213a3a9027e95e872a..b91d382576645159b582f918ad4ef7fac73ad1ea 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -1031,6 +1031,14 @@ dart::String& TranslationHelper::DartString(String* content,
}
+dart::String& TranslationHelper::DartString(const uint8_t* utf8_array,
+ intptr_t len,
+ Heap::Space space) {
+ return dart::String::ZoneHandle(
+ Z, dart::String::FromUTF8(utf8_array, len, space));
+}
+
+
const dart::String& TranslationHelper::DartSymbol(const char* content) const {
return dart::String::ZoneHandle(Z, Symbols::New(thread_, content));
}
@@ -4270,7 +4278,7 @@ void FlowGraphBuilder::VisitBigintLiteral(BigintLiteral* node) {
void FlowGraphBuilder::VisitDoubleLiteral(DoubleLiteral* node) {
- fragment_ = Constant(constant_evaluator_.EvaluateExpression(node));
+ fragment_ = streaming_flow_graph_builder_->BuildAt(node->kernel_offset());
}
« runtime/vm/kernel_binary_flowgraph.cc ('K') | « runtime/vm/kernel_to_il.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698