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

Unified Diff: test/cctest/compiler/function-tester.h

Issue 473263004: Towards removing dependency from generic lowering on compilation info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add strict mode to store nodes. 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
Index: test/cctest/compiler/function-tester.h
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h
index 00adcf183b0b54a5a99cd73e8ab59295f58e72e8..9419a6341acd0360a5138635744228e1fc4c4767 100644
--- a/test/cctest/compiler/function-tester.h
+++ b/test/cctest/compiler/function-tester.h
@@ -27,12 +27,15 @@ namespace compiler {
class FunctionTester : public InitializedHandleScope {
public:
explicit FunctionTester(const char* source, bool context_specialization =
- FLAG_context_specialization)
+ FLAG_context_specialization,
+ bool inlining = FLAG_turbo_inlining)
: isolate(main_isolate()),
function((FLAG_allow_natives_syntax = true, NewFunction(source))),
- context_specialization_(context_specialization) {
+ context_specialization_(context_specialization),
+ inlining_(inlining) {
Compile(function);
USE(context_specialization_);
+ USE(inlining_);
}
Isolate* isolate;
@@ -56,6 +59,7 @@ class FunctionTester : public InitializedHandleScope {
Pipeline pipeline(&info);
pipeline.set_context_specialization(context_specialization_);
+ pipeline.set_inlining(inlining_);
Handle<Code> code = pipeline.GenerateCode();
CHECK(!code.is_null());
@@ -195,6 +199,7 @@ class FunctionTester : public InitializedHandleScope {
private:
bool context_specialization_;
+ bool inlining_;
};
}
}

Powered by Google App Engine
This is Rietveld 408576698