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

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

Issue 680313003: Move input/output counts directly into Operators, simplying OperatorProperties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: yes Created 6 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/compiler/test-graph-reducer.cc ('k') | test/cctest/compiler/test-node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/zone.h" 8 #include "src/zone.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
11 #include "src/compiler/generic-node-inl.h" 11 #include "src/compiler/generic-node-inl.h"
12 #include "src/compiler/graph.h" 12 #include "src/compiler/graph.h"
13 #include "src/compiler/linkage.h" 13 #include "src/compiler/linkage.h"
14 #include "src/compiler/machine-operator.h" 14 #include "src/compiler/machine-operator.h"
15 #include "src/compiler/node.h" 15 #include "src/compiler/node.h"
16 #include "src/compiler/operator.h" 16 #include "src/compiler/operator.h"
17 #include "src/compiler/pipeline.h" 17 #include "src/compiler/pipeline.h"
18 #include "src/compiler/schedule.h" 18 #include "src/compiler/schedule.h"
19 #include "test/cctest/cctest.h" 19 #include "test/cctest/cctest.h"
20 20
21 #if V8_TURBOFAN_TARGET 21 #if V8_TURBOFAN_TARGET
22 22
23 using namespace v8::internal; 23 using namespace v8::internal;
24 using namespace v8::internal::compiler; 24 using namespace v8::internal::compiler;
25 25
26 static SimpleOperator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, 26 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite,
27 0, 0, "dummy"); 27 "dummy", 0, 0, 0, 0, 0, 0);
28 28
29 // So we can get a real JS function. 29 // So we can get a real JS function.
30 static Handle<JSFunction> Compile(const char* source) { 30 static Handle<JSFunction> Compile(const char* source) {
31 Isolate* isolate = CcTest::i_isolate(); 31 Isolate* isolate = CcTest::i_isolate();
32 Handle<String> source_code = isolate->factory() 32 Handle<String> source_code = isolate->factory()
33 ->NewStringFromUtf8(CStrVector(source)) 33 ->NewStringFromUtf8(CStrVector(source))
34 .ToHandleChecked(); 34 .ToHandleChecked();
35 Handle<SharedFunctionInfo> shared_function = Compiler::CompileScript( 35 Handle<SharedFunctionInfo> shared_function = Compiler::CompileScript(
36 source_code, Handle<String>(), 0, 0, false, 36 source_code, Handle<String>(), 0, 0, false,
37 Handle<Context>(isolate->native_context()), NULL, NULL, 37 Handle<Context>(isolate->native_context()), NULL, NULL,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // TODO(titzer): test linkage creation for outgoing runtime calls. 104 // TODO(titzer): test linkage creation for outgoing runtime calls.
105 } 105 }
106 106
107 107
108 TEST(TestLinkageStubCall) { 108 TEST(TestLinkageStubCall) {
109 // TODO(titzer): test linkage creation for outgoing stub calls. 109 // TODO(titzer): test linkage creation for outgoing stub calls.
110 } 110 }
111 111
112 112
113 #endif // V8_TURBOFAN_TARGET 113 #endif // V8_TURBOFAN_TARGET
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-graph-reducer.cc ('k') | test/cctest/compiler/test-node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698