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

Side by Side Diff: test/cctest/compiler/test-pipeline.cc

Issue 1417163004: Remove obsolete src/v8.h include from compiler cctests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-cctest-api-deprecation
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(jochen): Remove this after the setting is turned on globally. 5 // TODO(jochen): Remove this after the setting is turned on globally.
6 #define V8_IMMINENT_DEPRECATION_WARNINGS 6 #define V8_IMMINENT_DEPRECATION_WARNINGS
7 7
8 #include "src/v8.h"
9 #include "test/cctest/cctest.h"
10
11 #include "src/compiler.h" 8 #include "src/compiler.h"
12 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
13 #include "src/handles.h" 10 #include "src/handles.h"
14 #include "src/parser.h" 11 #include "src/parser.h"
12 #include "test/cctest/cctest.h"
15 13
16 using namespace v8::internal; 14 using namespace v8::internal;
17 using namespace v8::internal::compiler; 15 using namespace v8::internal::compiler;
18 16
19 static void RunPipeline(Zone* zone, const char* source) { 17 static void RunPipeline(Zone* zone, const char* source) {
20 Handle<JSFunction> function = Handle<JSFunction>::cast(v8::Utils::OpenHandle( 18 Handle<JSFunction> function = Handle<JSFunction>::cast(v8::Utils::OpenHandle(
21 *v8::Local<v8::Function>::Cast(CompileRun(source)))); 19 *v8::Local<v8::Function>::Cast(CompileRun(source))));
22 ParseInfo parse_info(zone, function); 20 ParseInfo parse_info(zone, function);
23 CHECK(Compiler::ParseAndAnalyze(&parse_info)); 21 CHECK(Compiler::ParseAndAnalyze(&parse_info));
24 CompilationInfo info(&parse_info); 22 CompilationInfo info(&parse_info);
(...skipping 10 matching lines...) Expand all
35 FLAG_turbo_types = true; 33 FLAG_turbo_types = true;
36 RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })"); 34 RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })");
37 } 35 }
38 36
39 37
40 TEST(PipelineGeneric) { 38 TEST(PipelineGeneric) {
41 HandleAndZoneScope handles; 39 HandleAndZoneScope handles;
42 FLAG_turbo_types = false; 40 FLAG_turbo_types = false;
43 RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })"); 41 RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })");
44 } 42 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-operator.cc ('k') | test/cctest/compiler/test-representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698