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

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

Issue 514643002: [turbofan] Explicitly mark call sites as patchable. (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/ia32/linkage-ia32.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 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 ReplaceWithICStubCall(Node* node, HydrogenCodeStub* stub); 58 void ReplaceWithStubCall(Node* node, HydrogenCodeStub* stub,
59 CallDescriptor::Flags flags);
59 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args); 60 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args);
60 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1); 61 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1);
61 62
62 Zone* zone() const { return graph()->zone(); } 63 Zone* zone() const { return graph()->zone(); }
63 Isolate* isolate() const { return zone()->isolate(); } 64 Isolate* isolate() const { return zone()->isolate(); }
64 JSGraph* jsgraph() const { return jsgraph_; } 65 JSGraph* jsgraph() const { return jsgraph_; }
65 Graph* graph() const { return jsgraph()->graph(); } 66 Graph* graph() const { return jsgraph()->graph(); }
66 Linkage* linkage() const { return linkage_; } 67 Linkage* linkage() const { return linkage_; }
67 CompilationInfo* info() const { return info_; } 68 CompilationInfo* info() const { return info_; }
68 CommonOperatorBuilder* common() const { return jsgraph()->common(); } 69 CommonOperatorBuilder* common() const { return jsgraph()->common(); }
69 MachineOperatorBuilder* machine() const { return machine_; } 70 MachineOperatorBuilder* machine() const { return machine_; }
70 71
71 private: 72 private:
72 CompilationInfo* info_; 73 CompilationInfo* info_;
73 JSGraph* jsgraph_; 74 JSGraph* jsgraph_;
74 Linkage* linkage_; 75 Linkage* linkage_;
75 MachineOperatorBuilder* machine_; 76 MachineOperatorBuilder* machine_;
76 SetOncePointer<Node> centrystub_constant_; 77 SetOncePointer<Node> centrystub_constant_;
77 }; 78 };
78 } 79
79 } 80 } // namespace compiler
80 } // namespace v8::internal::compiler 81 } // namespace internal
82 } // namespace v8
81 83
82 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ 84 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/linkage-ia32.cc ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698