| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 31ebbb18c8a42bf0399208099e20ac7f910c2d8c..58c9c966b088205b2e6a2013d55f9485bc1d3c8b 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -5418,6 +5418,15 @@ bool JSFunction::IsBuiltin() {
|
| }
|
|
|
|
|
| +bool JSFunction::IsNative() {
|
| + Object* script = shared()->script();
|
| + bool native = script->IsScript() &&
|
| + Script::cast(script)->type()->value() == Script::TYPE_NATIVE;
|
| + ASSERT(!IsBuiltin() || native); // All builtins are also native.
|
| + return native;
|
| +}
|
| +
|
| +
|
| bool JSFunction::NeedsArgumentsAdaption() {
|
| return shared()->formal_parameter_count() !=
|
| SharedFunctionInfo::kDontAdaptArgumentsSentinel;
|
|
|