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

Unified Diff: runtime/vm/intermediate_language.h

Issue 296003013: - Reduce the number of Isolate::Current() calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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
===================================================================
--- runtime/vm/intermediate_language.h (revision 36483)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -797,7 +797,8 @@
virtual void Accept(FlowGraphVisitor* visitor); \
virtual type##Instr* As##type() { return this; } \
virtual const char* DebugName() const { return #type; } \
- virtual LocationSummary* MakeLocationSummary(bool optimizing) const; \
+ virtual LocationSummary* MakeLocationSummary(Isolate* isolate, \
+ bool optimizing) const; \
virtual void EmitNativeCode(FlowGraphCompiler* compiler); \
@@ -923,11 +924,12 @@
return locs_;
}
- virtual LocationSummary* MakeLocationSummary(bool is_optimizing) const = 0;
+ virtual LocationSummary* MakeLocationSummary(Isolate* isolate,
+ bool is_optimizing) const = 0;
- void InitializeLocationSummary(bool optimizing) {
+ void InitializeLocationSummary(Isolate* isolate, bool optimizing) {
ASSERT(locs_ == NULL);
- locs_ = MakeLocationSummary(optimizing);
+ locs_ = MakeLocationSummary(isolate, optimizing);
}
static LocationSummary* MakeCallSummary();

Powered by Google App Engine
This is Rietveld 408576698