| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index 8bf470115d1d79b4d1fadac2a5c3eff39ad7551a..fb22e49213542778547858b0acc50a64be0a43dc 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -26,8 +26,8 @@ namespace internal {
|
| V(CallApiFunction) \
|
| V(CallApiAccessor) \
|
| V(CallApiGetter) \
|
| - V(CallConstruct) \
|
| V(CallIC) \
|
| + V(ConstructIC) \
|
| V(CEntry) \
|
| V(CompareIC) \
|
| V(DoubleToI) \
|
| @@ -1962,13 +1962,16 @@ class RegExpConstructResultStub final : public HydrogenCodeStub {
|
| };
|
|
|
|
|
| -// TODO(bmeurer/mvstanton): Turn CallConstructStub into ConstructICStub.
|
| -class CallConstructStub final : public PlatformCodeStub {
|
| +class ConstructICStub final : public PlatformCodeStub {
|
| public:
|
| - explicit CallConstructStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
|
| + explicit ConstructICStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
|
|
|
| - DEFINE_CALL_INTERFACE_DESCRIPTOR(CallConstruct);
|
| - DEFINE_PLATFORM_CODE_STUB(CallConstruct, PlatformCodeStub);
|
| + Code::Kind GetCodeKind() const override { return Code::CONSTRUCT_IC; }
|
| +
|
| + InlineCacheState GetICState() const final { return GENERIC; }
|
| +
|
| + DEFINE_CALL_INTERFACE_DESCRIPTOR(Construct);
|
| + DEFINE_PLATFORM_CODE_STUB(ConstructIC, PlatformCodeStub);
|
| };
|
|
|
|
|
|
|