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

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

Issue 720233006: [turbofan] Remove obsolete pure flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | 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/allocation.h" 8 #include "src/allocation.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 23 matching lines...) Expand all
34 #define DECLARE_LOWER(x) void Lower##x(Node* node); 34 #define DECLARE_LOWER(x) void Lower##x(Node* node);
35 // Dispatched depending on opcode. 35 // Dispatched depending on opcode.
36 JS_OP_LIST(DECLARE_LOWER) 36 JS_OP_LIST(DECLARE_LOWER)
37 #undef DECLARE_LOWER 37 #undef DECLARE_LOWER
38 38
39 // Helpers to patch existing nodes in the graph. 39 // Helpers to patch existing nodes in the graph.
40 void PatchOperator(Node* node, const Operator* new_op); 40 void PatchOperator(Node* node, const Operator* new_op);
41 void PatchInsertInput(Node* node, int index, Node* input); 41 void PatchInsertInput(Node* node, int index, Node* input);
42 42
43 // Helpers to replace existing nodes with a generic call. 43 // Helpers to replace existing nodes with a generic call.
44 void ReplaceWithCompareIC(Node* node, Token::Value token, bool pure); 44 void ReplaceWithCompareIC(Node* node, Token::Value token);
45 void ReplaceWithStubCall(Node* node, Callable c, CallDescriptor::Flags flags); 45 void ReplaceWithStubCall(Node* node, Callable c, CallDescriptor::Flags flags);
46 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args); 46 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args);
47 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1); 47 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1);
48 48
49 // Helper for optimization of JSCallFunction. 49 // Helper for optimization of JSCallFunction.
50 bool TryLowerDirectJSCall(Node* node); 50 bool TryLowerDirectJSCall(Node* node);
51 51
52 Zone* zone() const { return graph()->zone(); } 52 Zone* zone() const { return graph()->zone(); }
53 Isolate* isolate() const { return zone()->isolate(); } 53 Isolate* isolate() const { return zone()->isolate(); }
54 JSGraph* jsgraph() const { return jsgraph_; } 54 JSGraph* jsgraph() const { return jsgraph_; }
55 Graph* graph() const { return jsgraph()->graph(); } 55 Graph* graph() const { return jsgraph()->graph(); }
56 Linkage* linkage() const { return linkage_; } 56 Linkage* linkage() const { return linkage_; }
57 CompilationInfo* info() const { return info_; } 57 CompilationInfo* info() const { return info_; }
58 CommonOperatorBuilder* common() const { return jsgraph()->common(); } 58 CommonOperatorBuilder* common() const { return jsgraph()->common(); }
59 MachineOperatorBuilder* machine() const { return jsgraph()->machine(); } 59 MachineOperatorBuilder* machine() const { return jsgraph()->machine(); }
60 60
61 private: 61 private:
62 CompilationInfo* info_; 62 CompilationInfo* info_;
63 JSGraph* jsgraph_; 63 JSGraph* jsgraph_;
64 Linkage* linkage_; 64 Linkage* linkage_;
65 }; 65 };
66 66
67 } // namespace compiler 67 } // namespace compiler
68 } // namespace internal 68 } // namespace internal
69 } // namespace v8 69 } // namespace v8
70 70
71 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ 71 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698