| 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_
|
|
|