| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index ca3fb4349b67a180218a856faa1cc81cb5a411ee..db305c4f92d1a329a68bc634d2de4895f348b167 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -640,16 +640,7 @@ class HEnvironment V8_FINAL : public ZoneObject {
|
| int arguments,
|
| FunctionLiteral* function,
|
| HConstant* undefined,
|
| - InliningKind inlining_kind,
|
| - bool undefined_receiver) const;
|
| -
|
| - static bool UseUndefinedReceiver(Handle<JSFunction> closure,
|
| - FunctionLiteral* function,
|
| - CallKind call_kind,
|
| - InliningKind inlining_kind) {
|
| - return (closure->shared()->native() || !function->is_classic_mode()) &&
|
| - call_kind == CALL_AS_FUNCTION && inlining_kind != CONSTRUCT_CALL_RETURN;
|
| - }
|
| + InliningKind inlining_kind) const;
|
|
|
| HEnvironment* DiscardInlined(bool drop_extra) {
|
| HEnvironment* outer = outer_;
|
| @@ -1774,6 +1765,7 @@ class HGraphBuilder {
|
| HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype,
|
| Handle<JSObject> holder);
|
|
|
| + HInstruction* BuildGetNativeContext(HValue* closure);
|
| HInstruction* BuildGetNativeContext();
|
| HInstruction* BuildGetArrayFunction();
|
|
|
| @@ -2202,6 +2194,9 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
|
| // Try to optimize fun.apply(receiver, arguments) pattern.
|
| bool TryCallApply(Call* expr);
|
|
|
| + HValue* ImplicitReceiverFor(HValue* function,
|
| + Handle<JSFunction> target);
|
| +
|
| int InliningAstSize(Handle<JSFunction> target);
|
| bool TryInline(CallKind call_kind,
|
| Handle<JSFunction> target,
|
|
|