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

Side by Side Diff: src/compiler/linkage.cc

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 2 months 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/linkage.h ('k') | src/compiler/machine-operator.h » ('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/compiler/linkage.h" 5 #include "src/compiler/linkage.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
11 #include "src/scopes.h" 11 #include "src/scopes.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 17
18 OStream& operator<<(OStream& os, const CallDescriptor::Kind& k) { 18 std::ostream& operator<<(std::ostream& os, const CallDescriptor::Kind& k) {
19 switch (k) { 19 switch (k) {
20 case CallDescriptor::kCallCodeObject: 20 case CallDescriptor::kCallCodeObject:
21 os << "Code"; 21 os << "Code";
22 break; 22 break;
23 case CallDescriptor::kCallJSFunction: 23 case CallDescriptor::kCallJSFunction:
24 os << "JS"; 24 os << "JS";
25 break; 25 break;
26 case CallDescriptor::kCallAddress: 26 case CallDescriptor::kCallAddress:
27 os << "Addr"; 27 os << "Addr";
28 break; 28 break;
29 } 29 }
30 return os; 30 return os;
31 } 31 }
32 32
33 33
34 OStream& operator<<(OStream& os, const CallDescriptor& d) { 34 std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) {
35 // TODO(svenpanne) Output properties etc. and be less cryptic. 35 // TODO(svenpanne) Output properties etc. and be less cryptic.
36 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() 36 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount()
37 << "j" << d.JSParameterCount() << "i" << d.InputCount() << "f" 37 << "j" << d.JSParameterCount() << "i" << d.InputCount() << "f"
38 << d.FrameStateCount(); 38 << d.FrameStateCount();
39 } 39 }
40 40
41 41
42 Linkage::Linkage(CompilationInfo* info) : info_(info) { 42 Linkage::Linkage(CompilationInfo* info) : info_(info) {
43 if (info->function() != NULL) { 43 if (info->function() != NULL) {
44 // If we already have the function literal, use the number of parameters 44 // If we already have the function literal, use the number of parameters
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 213 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
214 MachineSignature* sig) { 214 MachineSignature* sig) {
215 UNIMPLEMENTED(); 215 UNIMPLEMENTED();
216 return NULL; 216 return NULL;
217 } 217 }
218 #endif // !V8_TURBOFAN_BACKEND 218 #endif // !V8_TURBOFAN_BACKEND
219 } 219 }
220 } 220 }
221 } // namespace v8::internal::compiler 221 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698