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

Side by Side Diff: src/compiler/js-operator.h

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 | « src/compiler/js-inlining.cc ('k') | src/compiler/js-operator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_JS_OPERATOR_H_ 5 #ifndef V8_COMPILER_JS_OPERATOR_H_
6 #define V8_COMPILER_JS_OPERATOR_H_ 6 #define V8_COMPILER_JS_OPERATOR_H_
7 7
8 #include "src/runtime/runtime.h" 8 #include "src/runtime/runtime.h"
9 #include "src/unique.h" 9 #include "src/unique.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class Operator; 16 class Operator;
17 struct JSOperatorBuilderImpl; 17 struct JSOperatorGlobalCache;
18 18
19 19
20 // Defines the arity and the call flags for a JavaScript function call. This is 20 // Defines the arity and the call flags for a JavaScript function call. This is
21 // used as a parameter by JSCallFunction operators. 21 // used as a parameter by JSCallFunction operators.
22 class CallFunctionParameters FINAL { 22 class CallFunctionParameters FINAL {
23 public: 23 public:
24 CallFunctionParameters(size_t arity, CallFunctionFlags flags) 24 CallFunctionParameters(size_t arity, CallFunctionFlags flags)
25 : arity_(arity), flags_(flags) {} 25 : arity_(arity), flags_(flags) {}
26 26
27 size_t arity() const { return arity_; } 27 size_t arity() const { return arity_; }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 const Operator* CreateFunctionContext(); 257 const Operator* CreateFunctionContext();
258 const Operator* CreateCatchContext(const Unique<String>& name); 258 const Operator* CreateCatchContext(const Unique<String>& name);
259 const Operator* CreateWithContext(); 259 const Operator* CreateWithContext();
260 const Operator* CreateBlockContext(); 260 const Operator* CreateBlockContext();
261 const Operator* CreateModuleContext(); 261 const Operator* CreateModuleContext();
262 const Operator* CreateGlobalContext(); 262 const Operator* CreateGlobalContext();
263 263
264 private: 264 private:
265 Zone* zone() const { return zone_; } 265 Zone* zone() const { return zone_; }
266 266
267 const JSOperatorBuilderImpl& impl_; 267 const JSOperatorGlobalCache& cache_;
268 Zone* const zone_; 268 Zone* const zone_;
269 269
270 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); 270 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder);
271 }; 271 };
272 272
273 } // namespace compiler 273 } // namespace compiler
274 } // namespace internal 274 } // namespace internal
275 } // namespace v8 275 } // namespace v8
276 276
277 #endif // V8_COMPILER_JS_OPERATOR_H_ 277 #endif // V8_COMPILER_JS_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698