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

Unified Diff: src/compiler/pipeline.h

Issue 484273003: Load closure from activation for building literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Load closure from activation for building literals. Created 6 years, 4 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/compiler/ast-graph-builder.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.h
diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h
index 9f8241a63c4ee4984f2f261f333a6447ce849c09..fce0952c4170b9b213fe1154c0416fee1295a990 100644
--- a/src/compiler/pipeline.h
+++ b/src/compiler/pipeline.h
@@ -24,7 +24,8 @@ class Linkage;
class Pipeline {
public:
- explicit Pipeline(CompilationInfo* info) : info_(info) {}
+ explicit Pipeline(CompilationInfo* info)
+ : info_(info), context_specialization_(FLAG_context_specialization) {}
// Run the entire pipeline and generate a handle to a code object.
Handle<Code> GenerateCode();
@@ -39,9 +40,14 @@ class Pipeline {
static void SetUp();
static void TearDown();
+ bool context_specialization() { return context_specialization_; }
+ void set_context_specialization(bool context_specialization) {
+ context_specialization_ = context_specialization;
+ }
private:
CompilationInfo* info_;
+ bool context_specialization_;
CompilationInfo* info() const { return info_; }
Isolate* isolate() { return info_->isolate(); }
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698