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

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

Issue 872363002: [turbofan] Add new JSIntrinsicsLowering reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-intrinsic-builder.cc ('k') | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-intrinsic-lowering.h
diff --git a/src/compiler/js-builtin-reducer.h b/src/compiler/js-intrinsic-lowering.h
similarity index 51%
copy from src/compiler/js-builtin-reducer.h
copy to src/compiler/js-intrinsic-lowering.h
index ac6f266eed5336685937e829fbef62dbd567066c..bc188caa0680015064c02812edb27b411facfa69 100644
--- a/src/compiler/js-builtin-reducer.h
+++ b/src/compiler/js-intrinsic-lowering.h
@@ -1,9 +1,9 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
+// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_
-#define V8_COMPILER_JS_BUILTIN_REDUCER_H_
+#ifndef V8_COMPILER_JS_INTRINSIC_LOWERING_H_
+#define V8_COMPILER_JS_INTRINSIC_LOWERING_H_
#include "src/compiler/graph-reducer.h"
#include "src/compiler/simplified-operator.h"
@@ -18,24 +18,25 @@ class JSGraph;
class MachineOperatorBuilder;
-class JSBuiltinReducer FINAL : public Reducer {
+// Lowers certain JS-level runtime calls.
+class JSIntrinsicLowering FINAL : public Reducer {
public:
- explicit JSBuiltinReducer(JSGraph* jsgraph);
- ~JSBuiltinReducer() FINAL {}
+ explicit JSIntrinsicLowering(JSGraph* jsgraph);
+ ~JSIntrinsicLowering() FINAL {}
Reduction Reduce(Node* node) FINAL;
private:
- Reduction ReduceMathAbs(Node* node);
- Reduction ReduceMathSqrt(Node* node);
- Reduction ReduceMathMax(Node* node);
- Reduction ReduceMathImul(Node* node);
- Reduction ReduceMathFround(Node* node);
- Reduction ReduceMathFloor(Node* node);
- Reduction ReduceMathCeil(Node* node);
+ Reduction ReduceInlineIsSmi(Node* node);
+ Reduction ReduceInlineIsNonNegativeSmi(Node* node);
+ Reduction ReduceInlineIsInstanceType(Node* node, InstanceType instance_type);
+ Reduction ReduceInlineValueOf(Node* node);
+
+ Reduction Change(Node* node, const Operator* op);
+ Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c);
- JSGraph* jsgraph() const { return jsgraph_; }
Graph* graph() const;
+ JSGraph* jsgraph() const { return jsgraph_; }
CommonOperatorBuilder* common() const;
MachineOperatorBuilder* machine() const;
SimplifiedOperatorBuilder* simplified() { return &simplified_; }
@@ -48,4 +49,4 @@ class JSBuiltinReducer FINAL : public Reducer {
} // namespace internal
} // namespace v8
-#endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
+#endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_
« no previous file with comments | « src/compiler/js-intrinsic-builder.cc ('k') | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698