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

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

Issue 693103004: Revert "Skip the CallFunctionStub when the callee function can be statically determined." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « src/compiler/x64/linkage-x64.cc ('k') | no next file » | 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"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 85
86 TEST(TestLinkageJSCall) { 86 TEST(TestLinkageJSCall) {
87 HandleAndZoneScope handles; 87 HandleAndZoneScope handles;
88 Handle<JSFunction> function = Compile("a + c"); 88 Handle<JSFunction> function = Compile("a + c");
89 CompilationInfoWithZone info(function); 89 CompilationInfoWithZone info(function);
90 Linkage linkage(info.zone(), &info); 90 Linkage linkage(info.zone(), &info);
91 91
92 for (int i = 0; i < 32; i++) { 92 for (int i = 0; i < 32; i++) {
93 CallDescriptor* descriptor = 93 CallDescriptor* descriptor = linkage.GetJSCallDescriptor(i);
94 linkage.GetJSCallDescriptor(i, CallDescriptor::kNoFlags);
95 CHECK_NE(NULL, descriptor); 94 CHECK_NE(NULL, descriptor);
96 CHECK_EQ(i, descriptor->JSParameterCount()); 95 CHECK_EQ(i, descriptor->JSParameterCount());
97 CHECK_EQ(1, descriptor->ReturnCount()); 96 CHECK_EQ(1, descriptor->ReturnCount());
98 CHECK_EQ(Operator::kNoProperties, descriptor->properties()); 97 CHECK_EQ(Operator::kNoProperties, descriptor->properties());
99 CHECK_EQ(true, descriptor->IsJSFunctionCall()); 98 CHECK_EQ(true, descriptor->IsJSFunctionCall());
100 } 99 }
101 } 100 }
102 101
103 102
104 TEST(TestLinkageRuntimeCall) { 103 TEST(TestLinkageRuntimeCall) {
105 // TODO(titzer): test linkage creation for outgoing runtime calls. 104 // TODO(titzer): test linkage creation for outgoing runtime calls.
106 } 105 }
107 106
108 107
109 TEST(TestLinkageStubCall) { 108 TEST(TestLinkageStubCall) {
110 // TODO(titzer): test linkage creation for outgoing stub calls. 109 // TODO(titzer): test linkage creation for outgoing stub calls.
111 } 110 }
112 111
113 112
114 #endif // V8_TURBOFAN_TARGET 113 #endif // V8_TURBOFAN_TARGET
OLDNEW
« no previous file with comments | « src/compiler/x64/linkage-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698