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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 1851653002: Fix bug in receiver-phi computation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed recursive version Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 kUnknownReceiver = -1, 1995 kUnknownReceiver = -1,
1996 kNotReceiver = 0, 1996 kNotReceiver = 0,
1997 kReceiver = 1 1997 kReceiver = 1
1998 }; 1998 };
1999 1999
2000 ReceiverType is_receiver() const { 2000 ReceiverType is_receiver() const {
2001 return static_cast<ReceiverType>(is_receiver_); 2001 return static_cast<ReceiverType>(is_receiver_);
2002 } 2002 }
2003 2003
2004 void set_is_receiver(ReceiverType is_receiver) { 2004 void set_is_receiver(ReceiverType is_receiver) {
2005 ASSERT(is_receiver_ == kUnknownReceiver);
2006 is_receiver_ = is_receiver; 2005 is_receiver_ = is_receiver;
2007 } 2006 }
2008 2007
2009 private: 2008 private:
2010 // Direct access to inputs_ in order to resize it due to unreachable 2009 // Direct access to inputs_ in order to resize it due to unreachable
2011 // predecessors. 2010 // predecessors.
2012 friend class ConstantPropagator; 2011 friend class ConstantPropagator;
2013 2012
2014 void RawSetInputAt(intptr_t i, Value* value) { inputs_[i] = value; } 2013 void RawSetInputAt(intptr_t i, Value* value) { inputs_[i] = value; }
2015 2014
(...skipping 6267 matching lines...) Expand 10 before | Expand all | Expand 10 after
8283 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ 8282 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \
8284 UNIMPLEMENTED(); \ 8283 UNIMPLEMENTED(); \
8285 return NULL; \ 8284 return NULL; \
8286 } \ 8285 } \
8287 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8286 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8288 8287
8289 8288
8290 } // namespace dart 8289 } // namespace dart
8291 8290
8292 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8291 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698