| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index 32423c218b3765cbe15f9c8766ad9f974e30538d..163fdd880862083f703c908e50695871c7589a17 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -1899,8 +1899,19 @@ class ArgumentsAccessStub: public PlatformCodeStub {
|
| CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
|
| if (type() == READ_ELEMENT) {
|
| return ArgumentsAccessReadDescriptor(isolate());
|
| + } else {
|
| + return ArgumentsAccessNewDescriptor(isolate());
|
| + }
|
| + }
|
| +
|
| + static Type ComputeType(bool is_unmapped, bool has_duplicate_parameters) {
|
| + if (is_unmapped) {
|
| + return Type::NEW_STRICT;
|
| + } else if (has_duplicate_parameters) {
|
| + return Type::NEW_SLOPPY_SLOW;
|
| + } else {
|
| + return Type::NEW_SLOPPY_FAST;
|
| }
|
| - return ContextOnlyDescriptor(isolate());
|
| }
|
|
|
| private:
|
|
|