Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index ab9c2922dc0f946b082e234427b6b246d7afd463..8933e6ce34011bbcd8ac41adf425b55dfa75aa9d 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11,7 +11,6 @@ |
#include "src/accessors.h" |
#include "src/allocation-site-scopes.h" |
#include "src/api.h" |
-#include "src/api-natives.h" |
#include "src/arguments.h" |
#include "src/base/bits.h" |
#include "src/base/utils/random-number-generator.h" |
@@ -1176,18 +1175,7 @@ |
// Regular accessor. |
Handle<Object> getter(AccessorPair::cast(*structure)->getter(), isolate); |
- if (getter->IsFunctionTemplateInfo()) { |
- auto result = Builtins::InvokeApiFunction( |
- Handle<FunctionTemplateInfo>::cast(getter), receiver, 0, nullptr); |
- if (isolate->has_pending_exception()) { |
- return MaybeHandle<Object>(); |
- } |
- Handle<Object> return_value; |
- if (result.ToHandle(&return_value)) { |
- return_value->VerifyApiCallResultType(); |
- return handle(*return_value, isolate); |
- } |
- } else if (getter->IsCallable()) { |
+ if (getter->IsCallable()) { |
// TODO(rossberg): nicer would be to cast to some JSCallable here... |
return Object::GetPropertyWithDefinedGetter( |
receiver, Handle<JSReceiver>::cast(getter)); |
@@ -1245,16 +1233,7 @@ |
// Regular accessor. |
Handle<Object> setter(AccessorPair::cast(*structure)->setter(), isolate); |
- if (setter->IsFunctionTemplateInfo()) { |
- Handle<Object> argv[] = {value}; |
- auto result = |
- Builtins::InvokeApiFunction(Handle<FunctionTemplateInfo>::cast(setter), |
- receiver, arraysize(argv), argv); |
- if (isolate->has_pending_exception()) { |
- return Nothing<bool>(); |
- } |
- return Just(true); |
- } else if (setter->IsCallable()) { |
+ if (setter->IsCallable()) { |
// TODO(rossberg): nicer would be to cast to some JSCallable here... |
return SetPropertyWithDefinedSetter( |
receiver, Handle<JSReceiver>::cast(setter), value, should_throw); |
@@ -9086,10 +9065,8 @@ |
} |
} |
- DCHECK(getter->IsCallable() || getter->IsUndefined() || getter->IsNull() || |
- getter->IsFunctionTemplateInfo()); |
- DCHECK(setter->IsCallable() || setter->IsUndefined() || setter->IsNull() || |
- getter->IsFunctionTemplateInfo()); |
+ DCHECK(getter->IsCallable() || getter->IsUndefined() || getter->IsNull()); |
+ DCHECK(setter->IsCallable() || setter->IsUndefined() || setter->IsNull()); |
// At least one of the accessors needs to be a new value. |
DCHECK(!getter->IsNull() || !setter->IsNull()); |
if (!getter->IsNull()) { |
@@ -11004,13 +10981,9 @@ |
Object* AccessorPair::GetComponent(AccessorComponent component) { |
Object* accessor = get(component); |
- if (accessor->IsFunctionTemplateInfo()) { |
- return *ApiNatives::InstantiateFunction( |
- handle(FunctionTemplateInfo::cast(accessor))) |
- .ToHandleChecked(); |
- } |
return accessor->IsTheHole() ? GetHeap()->undefined_value() : accessor; |
} |
+ |
Handle<DeoptimizationInputData> DeoptimizationInputData::New( |
Isolate* isolate, int deopt_entry_count, PretenureFlag pretenure) { |