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

Unified Diff: runtime/vm/intermediate_language.h

Issue 982873004: Thread/Isolate refactoring: new(Isolate) -> new(Zone) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 44266)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -317,7 +317,7 @@
inline void BindTo(Definition* definition);
inline void BindToEnvironment(Definition* definition);
- Value* Copy(Isolate* isolate) { return new(isolate) Value(definition_); }
+ Value* Copy(Zone* zone) { return new(zone) Value(definition_); }
// This function must only be used when the new Value is dominated by
// the original Value.
@@ -841,7 +841,7 @@
return false;
}
- virtual void InheritDeoptTarget(Isolate* isolate, Instruction* other);
+ virtual void InheritDeoptTarget(Zone* zone, Instruction* other);
bool NeedsEnvironment() const {
return CanDeoptimize() || CanBecomeDeoptimizationTarget();
@@ -2235,7 +2235,7 @@
virtual void PrintTo(BufferFormatter* f) const;
Value* offset() const { return inputs_[0]; }
- void ComputeOffsetTable(Isolate* isolate);
+ void ComputeOffsetTable();
private:
GrowableArray<TargetEntryInstr*> successors_;
@@ -2385,7 +2385,7 @@
return constant_target_;
}
- virtual void InheritDeoptTarget(Isolate* isolate, Instruction* other);
+ virtual void InheritDeoptTarget(Zone* zone, Instruction* other);
virtual bool MayThrow() const {
return comparison()->MayThrow();
@@ -7920,7 +7920,7 @@
};
// Construct an environment by constructing uses from an array of definitions.
- static Environment* From(Isolate* isolate,
+ static Environment* From(Zone* zone,
const GrowableArray<Definition*>& definitions,
intptr_t fixed_parameter_count,
const ParsedFunction& parsed_function);
@@ -7981,14 +7981,14 @@
const Code& code() const { return parsed_function_.code(); }
- Environment* DeepCopy(Isolate* isolate) const {
- return DeepCopy(isolate, Length());
+ Environment* DeepCopy(Zone* zone) const {
+ return DeepCopy(zone, Length());
}
- void DeepCopyTo(Isolate* isolate, Instruction* instr) const;
- void DeepCopyToOuter(Isolate* isolate, Instruction* instr) const;
+ void DeepCopyTo(Zone* zone, Instruction* instr) const;
+ void DeepCopyToOuter(Zone* zone, Instruction* instr) const;
- void DeepCopyAfterTo(Isolate* isolate,
+ void DeepCopyAfterTo(Zone* zone,
Instruction* instr,
intptr_t argc,
Definition* dead,
@@ -8000,7 +8000,7 @@
// Deep copy an environment. The 'length' parameter may be less than the
// environment's length in order to drop values (e.g., passed arguments)
// from the copy.
- Environment* DeepCopy(Isolate* isolate, intptr_t length) const;
+ Environment* DeepCopy(Zone* zone, intptr_t length) const;
private:
friend class ShallowIterator;
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698