| Index: src/crankshaft/hydrogen-instructions.h
|
| diff --git a/src/crankshaft/hydrogen-instructions.h b/src/crankshaft/hydrogen-instructions.h
|
| index d668885311e044ce43059888b0857c0a457c804a..83dc59755ba9786670e0396fc5d45f04bbc9466b 100644
|
| --- a/src/crankshaft/hydrogen-instructions.h
|
| +++ b/src/crankshaft/hydrogen-instructions.h
|
| @@ -130,7 +130,6 @@ class LChunkBuilder;
|
| V(Power) \
|
| V(Prologue) \
|
| V(PushArguments) \
|
| - V(RegExpLiteral) \
|
| V(Return) \
|
| V(Ror) \
|
| V(Sar) \
|
| @@ -7402,75 +7401,6 @@ class HStringCharFromCode final : public HTemplateInstruction<2> {
|
| };
|
|
|
|
|
| -template <int V>
|
| -class HMaterializedLiteral : public HTemplateInstruction<V> {
|
| - public:
|
| - HMaterializedLiteral<V>(int index, int depth, AllocationSiteMode mode)
|
| - : literal_index_(index), depth_(depth), allocation_site_mode_(mode) {
|
| - this->set_representation(Representation::Tagged());
|
| - }
|
| -
|
| - HMaterializedLiteral<V>(int index, int depth)
|
| - : literal_index_(index), depth_(depth),
|
| - allocation_site_mode_(DONT_TRACK_ALLOCATION_SITE) {
|
| - this->set_representation(Representation::Tagged());
|
| - }
|
| -
|
| - int literal_index() const { return literal_index_; }
|
| - int depth() const { return depth_; }
|
| - AllocationSiteMode allocation_site_mode() const {
|
| - return allocation_site_mode_;
|
| - }
|
| -
|
| - private:
|
| - bool IsDeletable() const final { return true; }
|
| -
|
| - int literal_index_;
|
| - int depth_;
|
| - AllocationSiteMode allocation_site_mode_;
|
| -};
|
| -
|
| -
|
| -class HRegExpLiteral final : public HMaterializedLiteral<1> {
|
| - public:
|
| - DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P4(HRegExpLiteral,
|
| - Handle<FixedArray>,
|
| - Handle<String>,
|
| - Handle<String>,
|
| - int);
|
| -
|
| - HValue* context() { return OperandAt(0); }
|
| - Handle<FixedArray> literals() { return literals_; }
|
| - Handle<String> pattern() { return pattern_; }
|
| - Handle<String> flags() { return flags_; }
|
| -
|
| - Representation RequiredInputRepresentation(int index) override {
|
| - return Representation::Tagged();
|
| - }
|
| -
|
| - DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral)
|
| -
|
| - private:
|
| - HRegExpLiteral(HValue* context,
|
| - Handle<FixedArray> literals,
|
| - Handle<String> pattern,
|
| - Handle<String> flags,
|
| - int literal_index)
|
| - : HMaterializedLiteral<1>(literal_index, 0),
|
| - literals_(literals),
|
| - pattern_(pattern),
|
| - flags_(flags) {
|
| - SetOperandAt(0, context);
|
| - SetAllSideEffects();
|
| - set_type(HType::JSObject());
|
| - }
|
| -
|
| - Handle<FixedArray> literals_;
|
| - Handle<String> pattern_;
|
| - Handle<String> flags_;
|
| -};
|
| -
|
| -
|
| class HTypeof final : public HTemplateInstruction<2> {
|
| public:
|
| DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HTypeof, HValue*);
|
|
|