Home | History | Annotate | Download | only in src

Lines Matching refs:arguments

569     // Check that phis have correct arguments.
2449 // We don't support phi uses of arguments for now.
2808 ZoneList<Expression*>* arguments) {
2809 for (int i = 0; i < arguments->length(); i++) {
2810 CHECK_ALIVE(VisitArgument(arguments->at(i)));
3020 ZoneList<HValue*> arguments(count, zone());
3022 arguments.Add(Pop(), zone());
3025 while (!arguments.is_empty()) {
3026 Add<HPushArgument>(arguments.RemoveLast());
3041 // Create an arguments object containing the initial parameters. Set the
3061 // Handle the arguments and arguments shadow variables specially (they do
3063 if (scope->arguments() != NULL) {
3064 if (!scope->arguments()->IsStackAllocated()) {
3068 environment()->Bind(scope->arguments(),
5080 // using the arguments object. We do not (yet) correctly handle the
5081 // arguments property of the function.
5082 if (current_info()->scope()->arguments() != NULL) {
5272 // We do not allow the arguments object to occur in a context where it
5283 // the arguments object. We do not (yet) correctly handle the
5284 // arguments property of the function.
5285 if (current_info()->scope()->arguments() != NULL) {
5798 // Outermost function already has arguments on the stack.
5803 // Push arguments when entering inlined function.
5807 HArgumentsObject* arguments = entry->arguments_object();
5808 const ZoneList<HValue*>* arguments_values = arguments->arguments_values();
5842 // Number of arguments without receiver.
5852 Drop(1); // Arguments object.
5861 // Number of arguments without receiver.
6075 int argument_count = expr->arguments()->length() + 1; // Includes receiver.
6097 int argument_count = expr->arguments()->length() + 1; // Includes receiver.
6392 // If the function uses the arguments object check that inlining of functions
6393 // with arguments object is enabled and the arguments-variable is
6395 if (function->scope()->arguments() != NULL) {
6397 TraceInline(target, caller, "target uses arguments object");
6401 if (!function->scope()->arguments()->IsStackAllocated()) {
6404 "target uses non-stackallocated arguments object");
6480 // If the function uses arguments object create and bind one, also copy
6481 // current arguments values to use them for materialization.
6482 if (function->scope()->arguments() != NULL) {
6483 ASSERT(function->scope()->arguments()->IsStackAllocated());
6487 inner_env->Bind(function->scope()->arguments(), arguments_object);
6496 function->scope()->arguments(),
6612 expr->arguments()->length(),
6624 expr->arguments()->length(),
6686 if (expr->arguments()->length() == 1) {
6699 if (expr->arguments()->length() == 2) {
6727 int argument_count = expr->arguments()->length() + 1; // Plus receiver.
6885 if (current_info()->scope()->arguments() == NULL) return false;
6887 ZoneList<Expression*>* args = expr->arguments();
6895 // Found pattern f.apply(receiver, arguments).
6920 // arguments object. But we need to be able to materialize at deopt.
6964 int argument_count = expr->arguments()->length() + 1; // Plus receiver.
6980 CHECK_ALIVE(VisitArgumentList(expr->arguments()));
6993 CHECK_ALIVE(VisitExpressions(expr->arguments()));
7007 environment()->ExpressionStackAt(expr->arguments()->length());
7074 CHECK_ALIVE(VisitExpressions(expr->arguments()));
7115 CHECK_ALIVE(VisitArgumentList(expr->arguments()));
7123 // evaluation of the arguments.
7129 CHECK_ALIVE(VisitExpressions(expr->arguments()));
7155 CHECK_ALIVE(VisitArgumentList(expr->arguments()));
7180 int argument_count = expr->arguments()->length() + 1; // Plus constructor.
7188 // during evaluation of the arguments.
7191 CHECK_ALIVE(VisitExpressions(expr->arguments()));
7258 // arguments in case inlining failed. What we actually should do is for
7281 CHECK_ALIVE(VisitArgumentList(expr->arguments()));
7339 CHECK_ALIVE(VisitArgumentList(expr->arguments()));
7342 int argument_count = expr->arguments()->length();
7378 // even though we are certain to pass the correct number of arguments here.
7547 // using the arguments object. We do not (yet) correctly handle the
7548 // arguments property of the function.
7549 if (current_info()->scope()->arguments() != NULL) {
7771 // For addition we can only truncate the arguments to number if we can
7866 ASSERT(call->arguments()->length() == 1);
8048 ASSERT(call->arguments()->length() == 1);
8049 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8126 // even though we are certain to pass the correct number of arguments here.
8717 ASSERT(call->arguments()->length() == 1);
8718 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8726 ASSERT(call->arguments()->length() == 1);
8727 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8738 ASSERT(call->arguments()->length() == 1);
8739 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8748 ASSERT(call->arguments()->length() == 1);
8749 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8758 ASSERT(call->arguments()->length() == 1);
8759 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8768 ASSERT(call->arguments()->length() == 1);
8769 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8778 ASSERT(call->arguments()->length() == 1);
8779 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8792 ASSERT(call->arguments()->length() == 1);
8793 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8809 ASSERT(call->arguments()->length() == 0);
8823 // Support for arguments.length and arguments[?].
8825 // Our implementation of arguments (based on this stack frame or an
8829 ASSERT(call->arguments()->length() == 0);
8837 // Our implementation of arguments (based on this stack frame or an
8841 ASSERT(call->arguments()->length() == 1);
8842 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8862 ASSERT(call->arguments()->length() == 1);
8863 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8871 ASSERT(call->arguments()->length() == 2);
8872 ASSERT_NE(NULL, call->arguments()->at(1)->AsLiteral());
8873 Smi* index = Smi::cast(*(call->arguments()->at(1)->AsLiteral()->value()));
8874 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8883 ASSERT(call->arguments()->length() == 3);
8884 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8885 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
8886 CHECK_ALIVE(VisitForValue(call->arguments()->at(2)));
8898 ASSERT(call->arguments()->length() == 3);
8899 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8900 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
8901 CHECK_ALIVE(VisitForValue(call->arguments()->at(2)));
8912 ASSERT(call->arguments()->length() == 2);
8913 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8914 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
8951 ASSERT(call->arguments()->length() == 2);
8952 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8953 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
8963 ASSERT(call->arguments()->length() == 1);
8964 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8973 ASSERT(call->arguments()->length() == 2);
8974 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8975 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
8987 ASSERT(call->arguments()->length() == 2);
8988 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
8989 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
9014 ASSERT_EQ(2, call->arguments()->length());
9015 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
9016 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
9028 ASSERT_EQ(3, call->arguments()->length());
9029 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9039 ASSERT_EQ(2, call->arguments()->length());
9040 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9051 ASSERT_EQ(4, call->arguments()->length());
9052 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9062 ASSERT_EQ(3, call->arguments()->length());
9063 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9080 ASSERT_EQ(1, call->arguments()->length());
9081 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9093 arguments()->length() - 1;
9097 CHECK_ALIVE(VisitArgument(call->arguments()->at(i)));
9099 CHECK_ALIVE(VisitForValue(call->arguments()->last()));
9133 ASSERT_EQ(2, call->arguments()->length());
9134 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
9135 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
9144 ASSERT_EQ(1, call->arguments()->length());
9145 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9156 ASSERT_EQ(1, call->arguments()->length());
9157 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9168 ASSERT_EQ(1, call->arguments()->length());
9169 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9180 ASSERT_EQ(1, call->arguments()->length());
9181 CHECK_ALIVE(VisitArgumentList(call->arguments()));
9192 ASSERT(call->arguments()->length() == 1);
9193 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
9209 ASSERT(call->arguments()->length() == 1);
9210 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
9299 int arguments,
9302 values_(arguments, zone),
9304 parameter_count_(arguments),
9441 int arguments) const {
9444 arguments + 1, zone());
9445 for (int i = 0; i <= arguments; ++i) { // Include receiver.
9446 new_env->Push(ExpressionStackAt(arguments - i));
9455 int arguments,
9462 // Outer environment is a copy of this one without the arguments.
9466 outer->Drop(arguments + 1); // Including receiver.
9473 outer = CreateStubEnvironment(outer, target, JS_CONSTRUCT, arguments);
9477 outer = CreateStubEnvironment(outer, target, JS_GETTER, arguments);
9481 outer = CreateStubEnvironment(outer, target, JS_SETTER, arguments);
9484 if (arity != arguments) {
9485 // Create artificial arguments adaptation environment.
9486 outer = CreateStubEnvironment(outer, target, ARGUMENTS_ADAPTOR, arguments);
9493 HValue* push = (i <= arguments) ?
9494 ExpressionStackAt(arguments - i) : undefined;