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

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

Issue 1140583004: [turbofan] Add frame state before JavaScript comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove obsolete #if 0. Slightly refactor strong mode check. Created 5 years, 7 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 | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-typed-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_TYPED_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_
6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ 6 #define V8_COMPILER_JS_TYPED_LOWERING_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 Reduction ReduceJSCreateClosure(Node* node); 57 Reduction ReduceJSCreateClosure(Node* node);
58 Reduction ReduceJSCreateLiteralArray(Node* node); 58 Reduction ReduceJSCreateLiteralArray(Node* node);
59 Reduction ReduceJSCreateLiteralObject(Node* node); 59 Reduction ReduceJSCreateLiteralObject(Node* node);
60 Reduction ReduceJSCreateWithContext(Node* node); 60 Reduction ReduceJSCreateWithContext(Node* node);
61 Reduction ReduceJSCreateBlockContext(Node* node); 61 Reduction ReduceJSCreateBlockContext(Node* node);
62 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); 62 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp);
63 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); 63 Reduction ReduceInt32Binop(Node* node, const Operator* intOp);
64 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, 64 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness,
65 const Operator* shift_op); 65 const Operator* shift_op);
66 66
67 Node* ConvertPrimitiveToNumber(Node* input);
68
69 Node* Word32Shl(Node* const lhs, int32_t const rhs); 67 Node* Word32Shl(Node* const lhs, int32_t const rhs);
70 68
71 Factory* factory() const; 69 Factory* factory() const;
72 Graph* graph() const; 70 Graph* graph() const;
73 JSGraph* jsgraph() const { return jsgraph_; } 71 JSGraph* jsgraph() const { return jsgraph_; }
74 JSOperatorBuilder* javascript() const; 72 JSOperatorBuilder* javascript() const;
75 CommonOperatorBuilder* common() const; 73 CommonOperatorBuilder* common() const;
76 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 74 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
77 MachineOperatorBuilder* machine() const; 75 MachineOperatorBuilder* machine() const;
78 76
79 // Limits up to which context allocations are inlined. 77 // Limits up to which context allocations are inlined.
80 static const int kBlockContextAllocationLimit = 16; 78 static const int kBlockContextAllocationLimit = 16;
81 79
82 JSGraph* jsgraph_; 80 JSGraph* jsgraph_;
83 SimplifiedOperatorBuilder simplified_; 81 SimplifiedOperatorBuilder simplified_;
84 Type* zero_range_; 82 Type* zero_range_;
85 Type* one_range_; 83 Type* one_range_;
86 Type* zero_thirtyone_range_; 84 Type* zero_thirtyone_range_;
87 Type* shifted_int32_ranges_[4]; 85 Type* shifted_int32_ranges_[4];
88 }; 86 };
89 87
90 } // namespace compiler 88 } // namespace compiler
91 } // namespace internal 89 } // namespace internal
92 } // namespace v8 90 } // namespace v8
93 91
94 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 92 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698