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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 11442010: Introduce a class encapsulating arguments descriptor arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 0185230d8945e98af0b4ea1f7861b1f3103cc09e..d259e9716a7ec5c1babe464bdbf49d6df13bbaa6 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -498,7 +498,8 @@ void FlowGraphCompiler::GenerateInstanceCall(
ASSERT(!ic_data.IsNull());
ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfChecks() == 0));
const Array& arguments_descriptor =
- DartEntry::ArgumentsDescriptor(argument_count, argument_names);
+ Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
+ argument_names));
uword label_address = 0;
if (is_optimizing() && (ic_data.NumberOfChecks() == 0)) {
if (ic_data.is_closure_call()) {
@@ -565,7 +566,8 @@ void FlowGraphCompiler::GenerateStaticCall(intptr_t deopt_id,
const Array& argument_names,
LocationSummary* locs) {
const Array& arguments_descriptor =
- DartEntry::ArgumentsDescriptor(argument_count, argument_names);
+ Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
+ argument_names));
EmitStaticCall(function, arguments_descriptor, argument_count,
deopt_id, token_pos, locs);
}

Powered by Google App Engine
This is Rietveld 408576698