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

Side by Side Diff: src/compiler/change-lowering.h

Issue 1709093002: [turbofan] Connect ObjectIsNumber to effect and control chains. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@move-change-low
Patch Set: Created 4 years, 10 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/change-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_CHANGE_LOWERING_H_ 5 #ifndef V8_COMPILER_CHANGE_LOWERING_H_
6 #define V8_COMPILER_CHANGE_LOWERING_H_ 6 #define V8_COMPILER_CHANGE_LOWERING_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace compiler { 12 namespace compiler {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 class CommonOperatorBuilder; 15 class CommonOperatorBuilder;
16 struct ElementAccess; 16 struct ElementAccess;
17 class JSGraph; 17 class JSGraph;
18 class Linkage; 18 class Linkage;
19 class MachineOperatorBuilder; 19 class MachineOperatorBuilder;
20 class Operator; 20 class Operator;
21 21
22 class ChangeLowering final : public Reducer { 22 class ChangeLowering final : public AdvancedReducer {
23 public: 23 public:
24 explicit ChangeLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} 24 ChangeLowering(Editor* editor, JSGraph* jsgraph)
25 : AdvancedReducer(editor), jsgraph_(jsgraph) {}
25 ~ChangeLowering() final; 26 ~ChangeLowering() final;
26 27
27 Reduction Reduce(Node* node) final; 28 Reduction Reduce(Node* node) final;
28 29
29 private: 30 private:
30 Node* HeapNumberValueIndexConstant(); 31 Node* HeapNumberValueIndexConstant();
31 Node* SmiMaxValueConstant(); 32 Node* SmiMaxValueConstant();
32 Node* SmiShiftBitsConstant(); 33 Node* SmiShiftBitsConstant();
33 34
34 Node* AllocateHeapNumberWithValue(Node* value, Node* control); 35 Node* AllocateHeapNumberWithValue(Node* value, Node* control);
(...skipping 15 matching lines...) Expand all
50 Signedness signedness); 51 Signedness signedness);
51 Reduction ChangeUint32ToTagged(Node* value, Node* control); 52 Reduction ChangeUint32ToTagged(Node* value, Node* control);
52 53
53 Reduction LoadField(Node* node); 54 Reduction LoadField(Node* node);
54 Reduction StoreField(Node* node); 55 Reduction StoreField(Node* node);
55 Reduction LoadElement(Node* node); 56 Reduction LoadElement(Node* node);
56 Reduction StoreElement(Node* node); 57 Reduction StoreElement(Node* node);
57 Reduction Allocate(Node* node); 58 Reduction Allocate(Node* node);
58 59
59 Node* IsSmi(Node* value); 60 Node* IsSmi(Node* value);
60 Node* LoadHeapObjectMap(Node* object, Node* control); 61 Node* LoadHeapObjectMap(Node* object, Node* effect, Node* control);
61 Node* LoadMapInstanceType(Node* map); 62 Node* LoadMapInstanceType(Node* map, Node* effect, Node* control);
62 63
63 Reduction ObjectIsNumber(Node* node); 64 Reduction ObjectIsNumber(Node* node);
64 Reduction ObjectIsReceiver(Node* node); 65 Reduction ObjectIsReceiver(Node* node);
65 Reduction ObjectIsSmi(Node* node); 66 Reduction ObjectIsSmi(Node* node);
66 67
67 Node* ComputeIndex(const ElementAccess& access, Node* const key); 68 Node* ComputeIndex(const ElementAccess& access, Node* const key);
68 Graph* graph() const; 69 Graph* graph() const;
69 Isolate* isolate() const; 70 Isolate* isolate() const;
70 JSGraph* jsgraph() const { return jsgraph_; } 71 JSGraph* jsgraph() const { return jsgraph_; }
71 CommonOperatorBuilder* common() const; 72 CommonOperatorBuilder* common() const;
72 MachineOperatorBuilder* machine() const; 73 MachineOperatorBuilder* machine() const;
73 74
74 JSGraph* const jsgraph_; 75 JSGraph* const jsgraph_;
75 SetOncePointer<const Operator> allocate_heap_number_operator_; 76 SetOncePointer<const Operator> allocate_heap_number_operator_;
76 }; 77 };
77 78
78 } // namespace compiler 79 } // namespace compiler
79 } // namespace internal 80 } // namespace internal
80 } // namespace v8 81 } // namespace v8
81 82
82 #endif // V8_COMPILER_CHANGE_LOWERING_H_ 83 #endif // V8_COMPILER_CHANGE_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698