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

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

Issue 491433002: [turbofan] Add support for ChangeUint32ToTagged in ChangeLowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « 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 {
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 ChangeLowering(JSGraph* jsgraph, Linkage* linkage, 22 ChangeLowering(JSGraph* jsgraph, Linkage* linkage,
23 MachineOperatorBuilder* machine) 23 MachineOperatorBuilder* machine)
24 : jsgraph_(jsgraph), linkage_(linkage), machine_(machine) {} 24 : jsgraph_(jsgraph), linkage_(linkage), machine_(machine) {}
25 virtual ~ChangeLowering(); 25 virtual ~ChangeLowering();
26 26
27 virtual Reduction Reduce(Node* node) V8_OVERRIDE; 27 virtual Reduction Reduce(Node* node) V8_OVERRIDE;
28 28
29 protected: 29 protected:
30 Node* HeapNumberValueIndexConstant(); 30 Node* HeapNumberValueIndexConstant();
31 Node* SmiMaxValueConstant();
31 Node* SmiShiftBitsConstant(); 32 Node* SmiShiftBitsConstant();
32 33
33 Reduction ChangeBitToBool(Node* val, Node* control); 34 Reduction ChangeBitToBool(Node* val, Node* control);
34 Reduction ChangeBoolToBit(Node* val); 35 Reduction ChangeBoolToBit(Node* val);
35 Reduction ChangeFloat64ToTagged(Node* val, Node* control); 36 Reduction ChangeFloat64ToTagged(Node* val, Node* control);
36 Reduction ChangeInt32ToTagged(Node* val, Node* control); 37 Reduction ChangeInt32ToTagged(Node* val, Node* control);
37 Reduction ChangeTaggedToFloat64(Node* val, Node* control); 38 Reduction ChangeTaggedToFloat64(Node* val, Node* control);
38 Reduction ChangeTaggedToInt32(Node* val, Node* control); 39 Reduction ChangeTaggedToInt32(Node* val, Node* control);
40 Reduction ChangeUint32ToTagged(Node* val, Node* control);
39 41
40 Graph* graph() const; 42 Graph* graph() const;
41 Isolate* isolate() const; 43 Isolate* isolate() const;
42 JSGraph* jsgraph() const { return jsgraph_; } 44 JSGraph* jsgraph() const { return jsgraph_; }
43 Linkage* linkage() const { return linkage_; } 45 Linkage* linkage() const { return linkage_; }
44 CommonOperatorBuilder* common() const; 46 CommonOperatorBuilder* common() const;
45 MachineOperatorBuilder* machine() const { return machine_; } 47 MachineOperatorBuilder* machine() const { return machine_; }
46 48
47 private: 49 private:
48 Node* AllocateHeapNumberWithValue(Node* value, Node* control); 50 Node* AllocateHeapNumberWithValue(Node* value, Node* control);
49 51
50 JSGraph* jsgraph_; 52 JSGraph* jsgraph_;
51 Linkage* linkage_; 53 Linkage* linkage_;
52 MachineOperatorBuilder* machine_; 54 MachineOperatorBuilder* machine_;
53 }; 55 };
54 56
55 } // namespace compiler 57 } // namespace compiler
56 } // namespace internal 58 } // namespace internal
57 } // namespace v8 59 } // namespace v8
58 60
59 #endif // V8_COMPILER_CHANGE_LOWERING_H_ 61 #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