| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index 895569d41357ca34acea2c232dc406044a8cd64d..fa133068c24145076e7c09d4995c11a82e9104da 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -971,4 +971,20 @@ InternalArrayConstructorStub::InternalArrayConstructorStub(
|
| }
|
|
|
|
|
| +JSApiFunctionStub::JSApiFunctionStub(Isolate* isolate,
|
| + Handle<FunctionTemplateInfo> info)
|
| + : PlatformCodeStub(isolate) {
|
| + // TODO(dcarney): CHECK if these properties are changes after first
|
| + // instantiation.
|
| + bool has_call_code = !info->call_code()->IsUndefined();
|
| + bool call_data_undefined = true;
|
| + bool has_signature = !info->signature()->IsUndefined();
|
| + if (has_call_code) {
|
| + auto handler = handle(CallHandlerInfo::cast(info->call_code()));
|
| + call_data_undefined = handler->data()->IsUndefined();
|
| + }
|
| + minor_key_ = CallDataUndefinedBits::encode(call_data_undefined) |
|
| + HasCallCodeBits::encode(has_call_code) |
|
| + HasSignatureBits::encode(has_signature);
|
| +}
|
| } } // namespace v8::internal
|
|
|