| Index: test/cctest/compiler/function-tester.h
|
| diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h
|
| index 67b704db911d30add319c8a670f6ed4f05607d19..6f2f2114c458d5b02de9289a1b57275b9c9b2bbc 100644
|
| --- a/test/cctest/compiler/function-tester.h
|
| +++ b/test/cctest/compiler/function-tester.h
|
| @@ -26,9 +26,11 @@ namespace compiler {
|
|
|
| class FunctionTester : public InitializedHandleScope {
|
| public:
|
| - explicit FunctionTester(const char* source)
|
| + explicit FunctionTester(const char* source, bool context_specialization =
|
| + FLAG_context_specialization)
|
| : isolate(main_isolate()),
|
| - function((FLAG_allow_natives_syntax = true, NewFunction(source))) {
|
| + function((FLAG_allow_natives_syntax = true, NewFunction(source))),
|
| + context_specialization_(context_specialization) {
|
| Compile(function);
|
| }
|
|
|
| @@ -51,7 +53,7 @@ class FunctionTester : public InitializedHandleScope {
|
|
|
| EnsureDeoptimizationSupport(&info);
|
|
|
| - Pipeline pipeline(&info);
|
| + Pipeline pipeline(&info, context_specialization_);
|
| Handle<Code> code = pipeline.GenerateCode();
|
|
|
| CHECK(!code.is_null());
|
| @@ -188,6 +190,9 @@ class FunctionTester : public InitializedHandleScope {
|
| Handle<Object> true_value() { return isolate->factory()->true_value(); }
|
|
|
| Handle<Object> false_value() { return isolate->factory()->false_value(); }
|
| +
|
| + private:
|
| + bool context_specialization_;
|
| };
|
| }
|
| }
|
|
|