| Index: test/cctest/compiler/test-pipeline.cc
|
| diff --git a/test/cctest/compiler/test-pipeline.cc b/test/cctest/compiler/test-pipeline.cc
|
| index b67af6ecf7d0047f45b1d689b3c3b1ca6fc02e9b..84550d502a5f5c7c311d3a8603bf5cbafd81eb23 100644
|
| --- a/test/cctest/compiler/test-pipeline.cc
|
| +++ b/test/cctest/compiler/test-pipeline.cc
|
| @@ -5,23 +5,18 @@
|
| #include "src/v8.h"
|
| #include "test/cctest/cctest.h"
|
|
|
| -#include "src/ast-numbering.h"
|
| #include "src/compiler.h"
|
| #include "src/compiler/pipeline.h"
|
| #include "src/handles.h"
|
| #include "src/parser.h"
|
| -#include "src/rewriter.h"
|
| -#include "src/scopes.h"
|
|
|
| using namespace v8::internal;
|
| using namespace v8::internal::compiler;
|
|
|
| -TEST(PipelineAdd) {
|
| - HandleAndZoneScope handles;
|
| - const char* source = "(function(a,b) { return a + b; })";
|
| +static void RunPipeline(Zone* zone, const char* source) {
|
| Handle<JSFunction> function = v8::Utils::OpenHandle(
|
| *v8::Handle<v8::Function>::Cast(CompileRun(source)));
|
| - ParseInfo parse_info(handles.main_zone(), function);
|
| + ParseInfo parse_info(zone, function);
|
| CHECK(Compiler::ParseAndAnalyze(&parse_info));
|
| CompilationInfo info(&parse_info);
|
|
|
| @@ -34,3 +29,17 @@ TEST(PipelineAdd) {
|
| USE(pipeline);
|
| #endif
|
| }
|
| +
|
| +
|
| +TEST(PipelineTyped) {
|
| + HandleAndZoneScope handles;
|
| + FLAG_turbo_types = true;
|
| + RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })");
|
| +}
|
| +
|
| +
|
| +TEST(PipelineGeneric) {
|
| + HandleAndZoneScope handles;
|
| + FLAG_turbo_types = false;
|
| + RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })");
|
| +}
|
|
|