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

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

Issue 1182193005: [turbofan] Remove the TryLowerDirectJSCall hack from generic lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« 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/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 23 matching lines...) Expand all
34 // Dispatched depending on opcode. 34 // Dispatched depending on opcode.
35 JS_OP_LIST(DECLARE_LOWER) 35 JS_OP_LIST(DECLARE_LOWER)
36 #undef DECLARE_LOWER 36 #undef DECLARE_LOWER
37 37
38 // Helpers to replace existing nodes with a generic call. 38 // Helpers to replace existing nodes with a generic call.
39 void ReplaceWithCompareIC(Node* node, Token::Value token); 39 void ReplaceWithCompareIC(Node* node, Token::Value token);
40 void ReplaceWithStubCall(Node* node, Callable c, CallDescriptor::Flags flags); 40 void ReplaceWithStubCall(Node* node, Callable c, CallDescriptor::Flags flags);
41 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args); 41 void ReplaceWithBuiltinCall(Node* node, Builtins::JavaScript id, int args);
42 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1); 42 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1);
43 43
44 // Helper for optimization of JSCallFunction.
45 bool TryLowerDirectJSCall(Node* node);
46
47 Zone* zone() const; 44 Zone* zone() const;
48 Isolate* isolate() const; 45 Isolate* isolate() const;
49 JSGraph* jsgraph() const { return jsgraph_; } 46 JSGraph* jsgraph() const { return jsgraph_; }
50 Graph* graph() const; 47 Graph* graph() const;
51 CommonOperatorBuilder* common() const; 48 CommonOperatorBuilder* common() const;
52 MachineOperatorBuilder* machine() const; 49 MachineOperatorBuilder* machine() const;
53 50
54 private: 51 private:
55 bool const is_typing_enabled_; 52 bool const is_typing_enabled_;
56 JSGraph* const jsgraph_; 53 JSGraph* const jsgraph_;
57 }; 54 };
58 55
59 } // namespace compiler 56 } // namespace compiler
60 } // namespace internal 57 } // namespace internal
61 } // namespace v8 58 } // namespace v8
62 59
63 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ 60 #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