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

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

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
11 #include "src/parser.h" 11 #include "src/parsing/parser.h"
12 #include "test/cctest/cctest.h" 12 #include "test/cctest/cctest.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 namespace compiler { 16 namespace compiler {
17 17
18 static void RunPipeline(Zone* zone, const char* source) { 18 static void RunPipeline(Zone* zone, const char* source) {
19 Handle<JSFunction> function = Handle<JSFunction>::cast(v8::Utils::OpenHandle( 19 Handle<JSFunction> function = Handle<JSFunction>::cast(v8::Utils::OpenHandle(
20 *v8::Local<v8::Function>::Cast(CompileRun(source)))); 20 *v8::Local<v8::Function>::Cast(CompileRun(source))));
21 ParseInfo parse_info(zone, function); 21 ParseInfo parse_info(zone, function);
(...skipping 16 matching lines...) Expand all
38 38
39 TEST(PipelineGeneric) { 39 TEST(PipelineGeneric) {
40 HandleAndZoneScope handles; 40 HandleAndZoneScope handles;
41 FLAG_turbo_types = false; 41 FLAG_turbo_types = false;
42 RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })"); 42 RunPipeline(handles.main_zone(), "(function(a,b) { return a + b; })");
43 } 43 }
44 44
45 } // namespace compiler 45 } // namespace compiler
46 } // namespace internal 46 } // namespace internal
47 } // namespace v8 47 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-loop-assignment-analysis.cc ('k') | test/cctest/compiler/test-run-bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698