| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index d3d64bf68eaa61370503cbf649e8544d9c0b24d4..2236678129080d6adb19833e38c960b2b9bacfae 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -140,6 +140,7 @@ namespace internal {
|
| V(ToBoolean) \
|
| V(ToInteger) \
|
| V(ToLength) \
|
| + V(HasProperty) \
|
| /* IC Handler stubs */ \
|
| V(ArrayBufferViewLoadField) \
|
| V(KeyedLoadSloppyArguments) \
|
| @@ -961,6 +962,15 @@ class LoadIndexedInterceptorStub : public TurboFanCodeStub {
|
| DEFINE_TURBOFAN_CODE_STUB(LoadIndexedInterceptor, TurboFanCodeStub);
|
| };
|
|
|
| +// ES6 section 12.10.3 "in" operator evaluation.
|
| +class HasPropertyStub : public TurboFanCodeStub {
|
| + public:
|
| + explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
|
| +
|
| + DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty);
|
| + DEFINE_TURBOFAN_CODE_STUB(HasProperty, TurboFanCodeStub);
|
| +};
|
| +
|
| enum StringAddFlags {
|
| // Omit both parameter checks.
|
| STRING_ADD_CHECK_NONE = 0,
|
|
|