Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 5d9dde412fc0f2626b7f9a8582a61ea9e63ff572..b2dc0afe30c70323829fa97c7f795fb9ec54ce2a 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -70,7 +70,6 @@ namespace internal { |
V(FastArrayPush) \ |
V(FastCloneRegExp) \ |
V(FastCloneShallowArray) \ |
- V(FastCloneShallowObject) \ |
V(FastNewClosure) \ |
V(FastNewContext) \ |
V(FastNewObject) \ |
@@ -122,6 +121,7 @@ namespace internal { |
V(BitwiseAnd) \ |
V(BitwiseOr) \ |
V(BitwiseXor) \ |
+ V(FastCloneShallowObject) \ |
V(LessThan) \ |
V(LessThanOrEqual) \ |
V(GreaterThan) \ |
@@ -1106,26 +1106,25 @@ class FastCloneShallowArrayStub : public HydrogenCodeStub { |
DEFINE_HYDROGEN_CODE_STUB(FastCloneShallowArray, HydrogenCodeStub); |
}; |
- |
-class FastCloneShallowObjectStub : public HydrogenCodeStub { |
+class FastCloneShallowObjectStub : public TurboFanCodeStub { |
public: |
// Maximum number of properties in copied object. |
static const int kMaximumClonedProperties = 6; |
FastCloneShallowObjectStub(Isolate* isolate, int length) |
- : HydrogenCodeStub(isolate) { |
+ : TurboFanCodeStub(isolate) { |
DCHECK_GE(length, 0); |
DCHECK_LE(length, kMaximumClonedProperties); |
- set_sub_minor_key(LengthBits::encode(length)); |
+ minor_key_ = LengthBits::encode(LengthBits::encode(length)); |
} |
- int length() const { return LengthBits::decode(sub_minor_key()); } |
+ int length() const { return LengthBits::decode(minor_key_); } |
private: |
class LengthBits : public BitField<int, 0, 4> {}; |
DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowObject); |
- DEFINE_HYDROGEN_CODE_STUB(FastCloneShallowObject, HydrogenCodeStub); |
+ DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowObject, TurboFanCodeStub); |
}; |