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

Unified Diff: src/compiler/js-typed-lowering.h

Issue 802353003: [turbofan] Cache conversions inserted during typed lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use temp zone. Add missing ToNumber conversion. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-typed-lowering.h
diff --git a/src/compiler/js-typed-lowering.h b/src/compiler/js-typed-lowering.h
index 015cfe06445251d0556d936dd9a35df63e8da32c..aa7510bb0ed052b4e9b2b907880dd9bca15c7d08 100644
--- a/src/compiler/js-typed-lowering.h
+++ b/src/compiler/js-typed-lowering.h
@@ -22,7 +22,7 @@ class MachineOperatorBuilder;
// Lowers JS-level operators to simplified operators based on types.
class JSTypedLowering FINAL : public Reducer {
public:
- explicit JSTypedLowering(JSGraph* jsgraph);
+ JSTypedLowering(JSGraph* jsgraph, Zone* zone);
~JSTypedLowering() FINAL {}
Reduction Reduce(Node* node) FINAL;
@@ -52,6 +52,12 @@ class JSTypedLowering FINAL : public Reducer {
Reduction ReduceUI32Shift(Node* node, Signedness left_signedness,
const Operator* shift_op);
+ Node* ConvertToBoolean(Node* input);
+ Node* ConvertToNumber(Node* input);
+ template <IrOpcode::Value>
+ Node* FindConversion(Node* input);
+ void InsertConversion(Node* conversion);
+
Node* Word32Shl(Node* const lhs, int32_t const rhs);
Factory* factory() const;
@@ -64,6 +70,7 @@ class JSTypedLowering FINAL : public Reducer {
JSGraph* jsgraph_;
SimplifiedOperatorBuilder simplified_;
+ ZoneVector<Node*> conversions_; // Cache inserted JSToXXX() conversions.
Type* zero_range_;
Type* one_range_;
Type* zero_thirtyone_range_;
« no previous file with comments | « no previous file | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698