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