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(); } |