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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2786073002: Stream SymbolLiteral & BigIntLiteral (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
« no previous file with comments | « runtime/vm/kernel_binary_flowgraph.cc ('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 b91d382576645159b582f918ad4ef7fac73ad1ea..e7801ba55f6a6989c83812456b5fa4e85fb9354a 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -4272,8 +4272,7 @@ void FlowGraphBuilder::VisitIntLiteral(IntLiteral* node) {
void FlowGraphBuilder::VisitBigintLiteral(BigintLiteral* node) {
- const dart::String& value = H.DartString(node->value());
- fragment_ = Constant(Integer::ZoneHandle(Z, Integer::New(value, Heap::kOld)));
+ fragment_ = streaming_flow_graph_builder_->BuildAt(node->kernel_offset());
}
@@ -4288,7 +4287,7 @@ void FlowGraphBuilder::VisitStringLiteral(StringLiteral* node) {
void FlowGraphBuilder::VisitSymbolLiteral(SymbolLiteral* node) {
- fragment_ = Constant(constant_evaluator_.EvaluateExpression(node));
+ fragment_ = streaming_flow_graph_builder_->BuildAt(node->kernel_offset());
}
« no previous file with comments | « runtime/vm/kernel_binary_flowgraph.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698