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

Side by Side Diff: src/compiler/js-generic-lowering.h

Issue 555283004: [turbofan] Next step towards shared operators. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/js-context-specialization.cc ('k') | src/compiler/js-generic-lowering.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 #ifndef V8_COMPILER_JS_GENERIC_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_GENERIC_LOWERING_H_
6 #define V8_COMPILER_JS_GENERIC_LOWERING_H_ 6 #define V8_COMPILER_JS_GENERIC_LOWERING_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #undef DECLARE_LOWER 43 #undef DECLARE_LOWER
44 44
45 // Helpers to create new constant nodes. 45 // Helpers to create new constant nodes.
46 Node* SmiConstant(int immediate); 46 Node* SmiConstant(int immediate);
47 Node* Int32Constant(int immediate); 47 Node* Int32Constant(int immediate);
48 Node* CodeConstant(Handle<Code> code); 48 Node* CodeConstant(Handle<Code> code);
49 Node* FunctionConstant(Handle<JSFunction> function); 49 Node* FunctionConstant(Handle<JSFunction> function);
50 Node* ExternalConstant(ExternalReference ref); 50 Node* ExternalConstant(ExternalReference ref);
51 51
52 // Helpers to patch existing nodes in the graph. 52 // Helpers to patch existing nodes in the graph.
53 void PatchOperator(Node* node, Operator* new_op); 53 void PatchOperator(Node* node, const Operator* new_op);
54 void PatchInsertInput(Node* node, int index, Node* input); 54 void PatchInsertInput(Node* node, int index, Node* input);
55 55
56 // Helpers to replace existing nodes with a generic call. 56 // Helpers to replace existing nodes with a generic call.
57 void ReplaceWithCompareIC(Node* node, Token::Value token, bool pure); 57 void ReplaceWithCompareIC(Node* node, Token::Value token, bool pure);
58 void ReplaceWithStubCall(Node* node, HydrogenCodeStub* stub, 58 void ReplaceWithStubCall(Node* node, HydrogenCodeStub* stub,
59 CallDescriptor::Flags flags); 59 CallDescriptor::Flags flags);
60 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args); 60 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args);
61 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1); 61 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1);
62 62
63 Zone* zone() const { return graph()->zone(); } 63 Zone* zone() const { return graph()->zone(); }
(...skipping 11 matching lines...) Expand all
75 Linkage* linkage_; 75 Linkage* linkage_;
76 MachineOperatorBuilder* machine_; 76 MachineOperatorBuilder* machine_;
77 SetOncePointer<Node> centrystub_constant_; 77 SetOncePointer<Node> centrystub_constant_;
78 }; 78 };
79 79
80 } // namespace compiler 80 } // namespace compiler
81 } // namespace internal 81 } // namespace internal
82 } // namespace v8 82 } // namespace v8
83 83
84 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ 84 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/js-context-specialization.cc ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698