Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 4a416a42082d0f4a54fc4f99ae9aac8af7e1679b..7a7a5582b7912a87c655b815b797f2b5d8b9ca5d 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -26,12 +26,12 @@ namespace compiler { |
class FunctionTester : public InitializedHandleScope { |
public: |
- explicit FunctionTester(const char* source, bool context_specialization = |
- FLAG_context_specialization) |
+ explicit FunctionTester(const char* source, uint32_t flags = 0) |
: isolate(main_isolate()), |
function((FLAG_allow_natives_syntax = true, NewFunction(source))), |
- context_specialization_(context_specialization) { |
+ flags_(flags) { |
Compile(function); |
+ USE(flags_); |
} |
Isolate* isolate; |
@@ -45,7 +45,12 @@ class FunctionTester : public InitializedHandleScope { |
StrictMode strict_mode = info.function()->strict_mode(); |
info.SetStrictMode(strict_mode); |
info.SetOptimizing(BailoutId::None(), Handle<Code>(function->code())); |
- if (context_specialization_) info.MarkAsContextSpecializing(); |
+ if (flags_ & CompilationInfo::kContextSpecializing) { |
+ info.MarkAsContextSpecializing(); |
+ } |
+ if (flags_ & CompilationInfo::kInliningEnabled) { |
+ info.MarkAsInliningEnabled(); |
+ } |
CHECK(Rewriter::Rewrite(&info)); |
CHECK(Scope::Analyze(&info)); |
CHECK_NE(NULL, info.scope()); |
@@ -193,7 +198,7 @@ class FunctionTester : public InitializedHandleScope { |
Handle<Object> false_value() { return isolate->factory()->false_value(); } |
private: |
- bool context_specialization_; |
+ uint32_t flags_; |
}; |
} |
} |