| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index 30ec1c76ca9eda6e355032756c75758e0dfcee1d..946eb76962d579b59dcbc2eb95764a4b36c073f0 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -830,12 +830,19 @@ class FunctionPrototypeStub: public ICStub {
|
|
|
| class StringLengthStub: public ICStub {
|
| public:
|
| - explicit StringLengthStub(Code::Kind kind) : ICStub(kind) { }
|
| + StringLengthStub(Code::Kind kind, bool support_wrapper)
|
| + : ICStub(kind), support_wrapper_(support_wrapper) { }
|
| virtual void Generate(MacroAssembler* masm);
|
|
|
| private:
|
| STATIC_ASSERT(KindBits::kSize == 4);
|
| - virtual CodeStub::Major MajorKey() { return StringLength; }
|
| + class WrapperModeBits: public BitField<bool, 4, 1> {};
|
| + virtual CodeStub::Major MajorKey() { return StringLength; }
|
| + virtual int MinorKey() {
|
| + return KindBits::encode(kind()) | WrapperModeBits::encode(support_wrapper_);
|
| + }
|
| +
|
| + bool support_wrapper_;
|
| };
|
|
|
|
|
|
|