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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 910313002: Rename IsConstructor to IsGenerativeConstructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/native_arguments.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_type_propagator.cc
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc
index 686074e9fdf3800ec8cb30ab91ebe5056b252365..bc052f687d02d76610e55807d24aed3c1df0cd42 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -750,13 +750,13 @@ CompileType ParameterInstr::ComputeType() const {
const AbstractType& type = scope->VariableAt(index())->type();
// Parameter is the constructor phase.
- if ((index() == 1) && function.IsConstructor()) {
+ if ((index() == 1) && function.IsGenerativeConstructor()) {
return CompileType::FromAbstractType(type, CompileType::kNonNullable);
}
// Parameter is the receiver.
if ((index() == 0) &&
- (function.IsDynamicFunction() || function.IsConstructor())) {
+ (function.IsDynamicFunction() || function.IsGenerativeConstructor())) {
if (type.IsObjectType() || type.IsNullType()) {
// Receiver can be null.
return CompileType::FromAbstractType(type, CompileType::kNullable);
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/native_arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698