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

Unified Diff: runtime/vm/intermediate_language.h

Issue 12304009: Trust declared type of the receiver to compute its initial compile type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 4b136f9adfdf39bcd5f9ebd7133a87da2b2f9350..a7617432bc410daf50ac24650be10a606edbdc60 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -22,11 +22,12 @@ class ControlInstruction;
class Definition;
class Environment;
class FlowGraphCompiler;
+class FlowGraphOptimizer;
class FlowGraphVisitor;
class Instruction;
class LocalVariable;
+class ParsedFunction;
class Range;
-class FlowGraphOptimizer;
// TODO(srdjan): Unify with INTRINSIC_LIST.
@@ -1005,7 +1006,8 @@ class BackwardInstructionIterator : public ValueObject {
class GraphEntryInstr : public BlockEntryInstr {
public:
- explicit GraphEntryInstr(TargetEntryInstr* normal_entry);
+ GraphEntryInstr(const ParsedFunction& parsed_function,
+ TargetEntryInstr* normal_entry);
DECLARE_INSTRUCTION(GraphEntry)
@@ -1034,12 +1036,17 @@ class GraphEntryInstr : public BlockEntryInstr {
TargetEntryInstr* normal_entry() const { return normal_entry_; }
+ const ParsedFunction& parsed_function() const {
+ return parsed_function_;
+ }
+
virtual void PrintTo(BufferFormatter* f) const;
private:
virtual void ClearPredecessors() {}
virtual void AddPredecessor(BlockEntryInstr* predecessor) { UNREACHABLE(); }
+ const ParsedFunction& parsed_function_;
TargetEntryInstr* normal_entry_;
GrowableArray<TargetEntryInstr*> catch_entries_;
GrowableArray<Definition*> initial_definitions_;

Powered by Google App Engine
This is Rietveld 408576698