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

Side by Side Diff: src/compiler/linkage-impl.h

Issue 526313002: [turbofan] First step of Operator refactoring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 3 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.cc ('k') | src/compiler/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 #ifndef V8_COMPILER_LINKAGE_IMPL_H_ 5 #ifndef V8_COMPILER_LINKAGE_IMPL_H_
6 #define V8_COMPILER_LINKAGE_IMPL_H_ 6 #define V8_COMPILER_LINKAGE_IMPL_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Operator::kNoProperties, // properties 64 Operator::kNoProperties, // properties
65 kNoCalleeSaved, // callee-saved registers 65 kNoCalleeSaved, // callee-saved registers
66 CallDescriptor::kNeedsFrameState); // flags 66 CallDescriptor::kNeedsFrameState); // flags
67 } 67 }
68 68
69 69
70 // TODO(turbofan): cache call descriptors for runtime calls. 70 // TODO(turbofan): cache call descriptors for runtime calls.
71 template <typename LinkageTraits> 71 template <typename LinkageTraits>
72 static CallDescriptor* GetRuntimeCallDescriptor( 72 static CallDescriptor* GetRuntimeCallDescriptor(
73 Zone* zone, Runtime::FunctionId function_id, int parameter_count, 73 Zone* zone, Runtime::FunctionId function_id, int parameter_count,
74 Operator::Property properties) { 74 Operator::Properties properties) {
75 const int code_count = 1; 75 const int code_count = 1;
76 const int function_count = 1; 76 const int function_count = 1;
77 const int num_args_count = 1; 77 const int num_args_count = 1;
78 const int context_count = 1; 78 const int context_count = 1;
79 const int input_count = code_count + parameter_count + function_count + 79 const int input_count = code_count + parameter_count + function_count +
80 num_args_count + context_count; 80 num_args_count + context_count;
81 81
82 const Runtime::Function* function = Runtime::FunctionForId(function_id); 82 const Runtime::Function* function = Runtime::FunctionForId(function_id);
83 const int return_count = function->result_size; 83 const int return_count = function->result_size;
84 LinkageLocation* locations = 84 LinkageLocation* locations =
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 default: 217 default:
218 return false; 218 return false;
219 } 219 }
220 } 220 }
221 221
222 } // namespace compiler 222 } // namespace compiler
223 } // namespace internal 223 } // namespace internal
224 } // namespace v8 224 } // namespace v8
225 225
226 #endif // V8_COMPILER_LINKAGE_IMPL_H_ 226 #endif // V8_COMPILER_LINKAGE_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698