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

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

Issue 1408283006: Remove deprecated API usage from compiler cctests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-arguments-inline-3
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
« no previous file with comments | « test/cctest/compiler/test-jump-threading.cc ('k') | test/cctest/compiler/test-loop-analysis.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 // TODO(jochen): Remove this after the setting is turned on globally.
6 #define V8_IMMINENT_DEPRECATION_WARNINGS
7
5 #include "src/v8.h" 8 #include "src/v8.h"
6 9
7 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
8 #include "src/compiler.h" 11 #include "src/compiler.h"
9 #include "src/parser.h" 12 #include "src/parser.h"
10 #include "src/zone.h" 13 #include "src/zone.h"
11 14
12 #include "src/compiler/common-operator.h" 15 #include "src/compiler/common-operator.h"
13 #include "src/compiler/graph.h" 16 #include "src/compiler/graph.h"
14 #include "src/compiler/linkage.h" 17 #include "src/compiler/linkage.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 54
52 55
53 TEST(TestLinkageJSFunctionIncoming) { 56 TEST(TestLinkageJSFunctionIncoming) {
54 const char* sources[] = {"(function() { })", "(function(a) { })", 57 const char* sources[] = {"(function() { })", "(function(a) { })",
55 "(function(a,b) { })", "(function(a,b,c) { })"}; 58 "(function(a,b) { })", "(function(a,b,c) { })"};
56 59
57 for (int i = 0; i < 3; i++) { 60 for (int i = 0; i < 3; i++) {
58 HandleAndZoneScope handles; 61 HandleAndZoneScope handles;
59 Handle<JSFunction> function = 62 Handle<JSFunction> function =
60 Handle<JSFunction>::cast(v8::Utils::OpenHandle( 63 Handle<JSFunction>::cast(v8::Utils::OpenHandle(
61 *v8::Handle<v8::Function>::Cast(CompileRun(sources[i])))); 64 *v8::Local<v8::Function>::Cast(CompileRun(sources[i]))));
62 ParseInfo parse_info(handles.main_zone(), function); 65 ParseInfo parse_info(handles.main_zone(), function);
63 CompilationInfo info(&parse_info); 66 CompilationInfo info(&parse_info);
64 CallDescriptor* descriptor = Linkage::ComputeIncoming(info.zone(), &info); 67 CallDescriptor* descriptor = Linkage::ComputeIncoming(info.zone(), &info);
65 CHECK(descriptor); 68 CHECK(descriptor);
66 69
67 CHECK_EQ(1 + i, static_cast<int>(descriptor->JSParameterCount())); 70 CHECK_EQ(1 + i, static_cast<int>(descriptor->JSParameterCount()));
68 CHECK_EQ(1, static_cast<int>(descriptor->ReturnCount())); 71 CHECK_EQ(1, static_cast<int>(descriptor->ReturnCount()));
69 CHECK_EQ(Operator::kNoProperties, descriptor->properties()); 72 CHECK_EQ(Operator::kNoProperties, descriptor->properties());
70 CHECK_EQ(true, descriptor->IsJSFunctionCall()); 73 CHECK_EQ(true, descriptor->IsJSFunctionCall());
71 } 74 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 108
106 109
107 TEST(TestLinkageRuntimeCall) { 110 TEST(TestLinkageRuntimeCall) {
108 // TODO(titzer): test linkage creation for outgoing runtime calls. 111 // TODO(titzer): test linkage creation for outgoing runtime calls.
109 } 112 }
110 113
111 114
112 TEST(TestLinkageStubCall) { 115 TEST(TestLinkageStubCall) {
113 // TODO(titzer): test linkage creation for outgoing stub calls. 116 // TODO(titzer): test linkage creation for outgoing stub calls.
114 } 117 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-jump-threading.cc ('k') | test/cctest/compiler/test-loop-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698