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

Unified Diff: src/full-codegen.h

Issue 6542061: [Isolates] Less TLS reads in parser and full codegens. (Closed)
Patch Set: Created 9 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 | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index 8d9fe2d3322f7cd57f5c91395debf5cb965e342f..33fd60e232d3f6c63884a337bfbd47a5320d4dac 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -74,7 +74,8 @@ class FullCodeGenerator: public AstVisitor {
};
explicit FullCodeGenerator(MacroAssembler* masm)
- : masm_(masm),
+ : isolate_(Isolate::Current()),
+ masm_(masm),
info_(NULL),
nesting_stack_(NULL),
loop_depth_(0),
@@ -516,6 +517,7 @@ class FullCodeGenerator: public AstVisitor {
loop_depth_--;
}
+ Isolate* isolate() { return isolate_; }
MacroAssembler* masm() { return masm_; }
class ExpressionContext;
@@ -567,6 +569,8 @@ class FullCodeGenerator: public AstVisitor {
codegen_->set_new_context(old_);
}
+ Isolate* isolate() const { return codegen_->isolate(); }
+
// Convert constant control flow (true or false) to the result expected for
// this expression context.
virtual void Plug(bool flag) const = 0;
@@ -743,6 +747,7 @@ class FullCodeGenerator: public AstVisitor {
virtual bool IsEffect() const { return true; }
};
+ Isolate* isolate_;
MacroAssembler* masm_;
CompilationInfo* info_;
Label return_label_;
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698