| Index: src/full-codegen/arm/full-codegen-arm.cc
|
| diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
|
| index 69eb98d96156395cce99e1600dd292284d997479..a928289c61d6d728d02e62fcf3144615cc201c28 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -144,7 +144,7 @@ void FullCodeGenerator::Generate() {
|
| __ LoadRoot(r2, Heap::kRealStackLimitRootIndex);
|
| __ cmp(r9, Operand(r2));
|
| __ b(hs, &ok);
|
| - __ CallRuntime(Runtime::kThrowStackOverflow, 0);
|
| + __ CallRuntime(Runtime::kThrowStackOverflow);
|
| __ bind(&ok);
|
| }
|
| __ LoadRoot(r9, Heap::kUndefinedValueRootIndex);
|
| @@ -181,7 +181,7 @@ void FullCodeGenerator::Generate() {
|
| if (info->scope()->is_script_scope()) {
|
| __ push(r1);
|
| __ Push(info->scope()->GetScopeInfo(info->isolate()));
|
| - __ CallRuntime(Runtime::kNewScriptContext, 2);
|
| + __ CallRuntime(Runtime::kNewScriptContext);
|
| PrepareForBailoutForId(BailoutId::ScriptContext(), TOS_REG);
|
| // The new target value is not used, clobbering is safe.
|
| DCHECK_NULL(info->scope()->new_target_var());
|
| @@ -196,7 +196,7 @@ void FullCodeGenerator::Generate() {
|
| need_write_barrier = false;
|
| } else {
|
| __ push(r1);
|
| - __ CallRuntime(Runtime::kNewFunctionContext, 1);
|
| + __ CallRuntime(Runtime::kNewFunctionContext);
|
| }
|
| if (info->scope()->new_target_var() != nullptr) {
|
| __ pop(r3); // Preserve new target.
|
| @@ -312,7 +312,7 @@ void FullCodeGenerator::Generate() {
|
| }
|
|
|
| if (FLAG_trace) {
|
| - __ CallRuntime(Runtime::kTraceEnter, 0);
|
| + __ CallRuntime(Runtime::kTraceEnter);
|
| }
|
|
|
| // Visit the declarations and body unless there is an illegal
|
| @@ -449,7 +449,7 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| // Push the return value on the stack as the parameter.
|
| // Runtime::TraceExit returns its parameter in r0.
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kTraceExit, 1);
|
| + __ CallRuntime(Runtime::kTraceExit);
|
| }
|
| // Pretend that the exit is a backwards jump to the entry.
|
| int weight = 1;
|
| @@ -854,7 +854,7 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| }
|
| __ Push(r2, r0);
|
| __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| - __ CallRuntime(Runtime::kDeclareLookupSlot, 3);
|
| + __ CallRuntime(Runtime::kDeclareLookupSlot);
|
| break;
|
| }
|
| }
|
| @@ -911,7 +911,7 @@ void FullCodeGenerator::VisitFunctionDeclaration(
|
| // Push initial value for function declaration.
|
| VisitForStackValue(declaration->fun());
|
| __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| - __ CallRuntime(Runtime::kDeclareLookupSlot, 3);
|
| + __ CallRuntime(Runtime::kDeclareLookupSlot);
|
| break;
|
| }
|
| }
|
| @@ -923,7 +923,7 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
|
| __ mov(r1, Operand(pairs));
|
| __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags())));
|
| __ Push(r1, r0);
|
| - __ CallRuntime(Runtime::kDeclareGlobals, 2);
|
| + __ CallRuntime(Runtime::kDeclareGlobals);
|
| // Return value is ignored.
|
| }
|
|
|
| @@ -931,7 +931,7 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
|
| void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) {
|
| // Call the runtime to declare the modules.
|
| __ Push(descriptions);
|
| - __ CallRuntime(Runtime::kDeclareModules, 1);
|
| + __ CallRuntime(Runtime::kDeclareModules);
|
| // Return value is ignored.
|
| }
|
|
|
| @@ -1086,7 +1086,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| // Get the set of properties to enumerate.
|
| __ bind(&call_runtime);
|
| __ push(r0); // Duplicate the enumerable object on the stack.
|
| - __ CallRuntime(Runtime::kGetPropertyNamesFast, 1);
|
| + __ CallRuntime(Runtime::kGetPropertyNamesFast);
|
| PrepareForBailoutForId(stmt->EnumId(), TOS_REG);
|
|
|
| // If we got a map from the runtime call, we can do a fast
|
| @@ -1165,7 +1165,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| // just skip it.
|
| __ push(r1); // Enumerable.
|
| __ push(r3); // Current entry.
|
| - __ CallRuntime(Runtime::kForInFilter, 2);
|
| + __ CallRuntime(Runtime::kForInFilter);
|
| PrepareForBailoutForId(stmt->FilterId(), TOS_REG);
|
| __ mov(r3, Operand(r0));
|
| __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
|
| @@ -1226,8 +1226,8 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
|
| __ CallStub(&stub);
|
| } else {
|
| __ Push(info);
|
| - __ CallRuntime(
|
| - pretenure ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure, 1);
|
| + __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured
|
| + : Runtime::kNewClosure);
|
| }
|
| context()->Plug(r0);
|
| }
|
| @@ -1366,7 +1366,7 @@ void FullCodeGenerator::EmitDynamicLookupFastCase(VariableProxy* proxy,
|
| __ b(ne, done);
|
| __ mov(r0, Operand(var->name()));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kThrowReferenceError, 1);
|
| + __ CallRuntime(Runtime::kThrowReferenceError);
|
| }
|
| }
|
| __ jmp(done);
|
| @@ -1422,7 +1422,7 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
|
| __ b(ne, &done);
|
| __ mov(r0, Operand(var->name()));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kThrowReferenceError, 1);
|
| + __ CallRuntime(Runtime::kThrowReferenceError);
|
| __ bind(&done);
|
| } else {
|
| // Uninitialized legacy const bindings are unholed.
|
| @@ -1449,7 +1449,7 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
|
| typeof_mode == NOT_INSIDE_TYPEOF
|
| ? Runtime::kLoadLookupSlot
|
| : Runtime::kLoadLookupSlotNoReferenceError;
|
| - __ CallRuntime(function_id, 2);
|
| + __ CallRuntime(function_id);
|
| __ bind(&done);
|
| context()->Plug(r0);
|
| }
|
| @@ -1497,7 +1497,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| __ mov(r0, Operand(Smi::FromInt(flags)));
|
| if (MustCreateObjectLiteralWithRuntime(expr)) {
|
| __ Push(r3, r2, r1, r0);
|
| - __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
|
| + __ CallRuntime(Runtime::kCreateObjectLiteral);
|
| } else {
|
| FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
|
| __ CallStub(&stub);
|
| @@ -1559,7 +1559,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| }
|
| __ mov(r0, Operand(Smi::FromInt(SLOPPY))); // PropertyAttributes
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kSetProperty, 4);
|
| + __ CallRuntime(Runtime::kSetProperty);
|
| } else {
|
| __ Drop(3);
|
| }
|
| @@ -1570,7 +1570,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| __ push(r0);
|
| VisitForStackValue(value);
|
| DCHECK(property->emit_store());
|
| - __ CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| + __ CallRuntime(Runtime::kInternalSetPrototype);
|
| break;
|
|
|
| case ObjectLiteral::Property::GETTER:
|
| @@ -1598,7 +1598,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| EmitAccessor(it->second->setter);
|
| __ mov(r0, Operand(Smi::FromInt(NONE)));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kDefineAccessorPropertyUnchecked, 5);
|
| + __ CallRuntime(Runtime::kDefineAccessorPropertyUnchecked);
|
| }
|
|
|
| // Object literals have two parts. The "static" part on the left contains no
|
| @@ -1626,7 +1626,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| DCHECK(!property->is_computed_name());
|
| VisitForStackValue(value);
|
| DCHECK(property->emit_store());
|
| - __ CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| + __ CallRuntime(Runtime::kInternalSetPrototype);
|
| } else {
|
| EmitPropertyKey(property, expr->GetIdForProperty(property_index));
|
| VisitForStackValue(value);
|
| @@ -1641,7 +1641,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| if (property->emit_store()) {
|
| __ mov(r0, Operand(Smi::FromInt(NONE)));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kDefineDataPropertyUnchecked, 4);
|
| + __ CallRuntime(Runtime::kDefineDataPropertyUnchecked);
|
| } else {
|
| __ Drop(3);
|
| }
|
| @@ -1654,13 +1654,13 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| case ObjectLiteral::Property::GETTER:
|
| __ mov(r0, Operand(Smi::FromInt(NONE)));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4);
|
| + __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked);
|
| break;
|
|
|
| case ObjectLiteral::Property::SETTER:
|
| __ mov(r0, Operand(Smi::FromInt(NONE)));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
|
| + __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked);
|
| break;
|
| }
|
| }
|
| @@ -1670,7 +1670,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| DCHECK(result_saved);
|
| __ ldr(r0, MemOperand(sp));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kToFastProperties, 1);
|
| + __ CallRuntime(Runtime::kToFastProperties);
|
| }
|
|
|
| if (result_saved) {
|
| @@ -1703,7 +1703,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| if (MustCreateArrayLiteralWithRuntime(expr)) {
|
| __ mov(r0, Operand(Smi::FromInt(expr->ComputeFlags())));
|
| __ Push(r3, r2, r1, r0);
|
| - __ CallRuntime(Runtime::kCreateArrayLiteral, 4);
|
| + __ CallRuntime(Runtime::kCreateArrayLiteral);
|
| } else {
|
| FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
|
| __ CallStub(&stub);
|
| @@ -1760,7 +1760,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| CALL_FUNCTION);
|
| } else {
|
| VisitForStackValue(subexpr);
|
| - __ CallRuntime(Runtime::kAppendElement, 2);
|
| + __ CallRuntime(Runtime::kAppendElement);
|
| }
|
|
|
| PrepareForBailoutForId(expr->GetIdForElement(array_index), NO_REGISTERS);
|
| @@ -2172,7 +2172,7 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator,
|
| DCHECK(!result_register().is(r1));
|
| __ Push(r1, result_register());
|
| __ Push(Smi::FromInt(resume_mode));
|
| - __ CallRuntime(Runtime::kResumeJSGeneratorObject, 3);
|
| + __ CallRuntime(Runtime::kResumeJSGeneratorObject);
|
| // Not reached: the runtime call returns elsewhere.
|
| __ stop("not-reached");
|
|
|
| @@ -2189,7 +2189,7 @@ void FullCodeGenerator::EmitCreateIteratorResult(bool done) {
|
|
|
| __ bind(&allocate);
|
| __ Push(Smi::FromInt(JSIteratorResult::kSize));
|
| - __ CallRuntime(Runtime::kAllocateInNewSpace, 1);
|
| + __ CallRuntime(Runtime::kAllocateInNewSpace);
|
|
|
| __ bind(&done_allocate);
|
| __ LoadNativeContextSlot(Context::ITERATOR_RESULT_MAP_INDEX, r1);
|
| @@ -2226,7 +2226,7 @@ void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) {
|
|
|
| __ Push(key->value());
|
| __ Push(Smi::FromInt(language_mode()));
|
| - __ CallRuntime(Runtime::kLoadFromSuper, 4);
|
| + __ CallRuntime(Runtime::kLoadFromSuper);
|
| }
|
|
|
|
|
| @@ -2243,7 +2243,7 @@ void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) {
|
| // Stack: receiver, home_object, key.
|
| SetExpressionPosition(prop);
|
| __ Push(Smi::FromInt(language_mode()));
|
| - __ CallRuntime(Runtime::kLoadKeyedFromSuper, 4);
|
| + __ CallRuntime(Runtime::kLoadKeyedFromSuper);
|
| }
|
|
|
|
|
| @@ -2370,7 +2370,7 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| // need to check for an own read only property we special case this so we do
|
| // not need to do this for every property.
|
| if (property->is_static() && property->is_computed_name()) {
|
| - __ CallRuntime(Runtime::kThrowIfStaticPrototype, 1);
|
| + __ CallRuntime(Runtime::kThrowIfStaticPrototype);
|
| __ push(r0);
|
| }
|
|
|
| @@ -2385,19 +2385,19 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| case ObjectLiteral::Property::PROTOTYPE:
|
| UNREACHABLE();
|
| case ObjectLiteral::Property::COMPUTED:
|
| - __ CallRuntime(Runtime::kDefineClassMethod, 3);
|
| + __ CallRuntime(Runtime::kDefineClassMethod);
|
| break;
|
|
|
| case ObjectLiteral::Property::GETTER:
|
| __ mov(r0, Operand(Smi::FromInt(DONT_ENUM)));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4);
|
| + __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked);
|
| break;
|
|
|
| case ObjectLiteral::Property::SETTER:
|
| __ mov(r0, Operand(Smi::FromInt(DONT_ENUM)));
|
| __ push(r0);
|
| - __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
|
| + __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked);
|
| break;
|
|
|
| default:
|
| @@ -2407,7 +2407,7 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
|
|
| // Set both the prototype and constructor to have fast properties, and also
|
| // freeze them in strong mode.
|
| - __ CallRuntime(Runtime::kFinalizeClassDefinition, 2);
|
| + __ CallRuntime(Runtime::kFinalizeClassDefinition);
|
| }
|
|
|
|
|
| @@ -2535,7 +2535,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| __ b(ne, &assign);
|
| __ mov(r3, Operand(var->name()));
|
| __ push(r3);
|
| - __ CallRuntime(Runtime::kThrowReferenceError, 1);
|
| + __ CallRuntime(Runtime::kThrowReferenceError);
|
| // Perform the assignment.
|
| __ bind(&assign);
|
| EmitStoreToStackLocalOrContextSlot(var, location);
|
| @@ -2551,9 +2551,9 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| __ b(ne, &const_error);
|
| __ mov(r3, Operand(var->name()));
|
| __ push(r3);
|
| - __ CallRuntime(Runtime::kThrowReferenceError, 1);
|
| + __ CallRuntime(Runtime::kThrowReferenceError);
|
| __ bind(&const_error);
|
| - __ CallRuntime(Runtime::kThrowConstAssignError, 0);
|
| + __ CallRuntime(Runtime::kThrowConstAssignError);
|
|
|
| } else if (var->is_this() && var->mode() == CONST && op == Token::INIT) {
|
| // Initializing assignment to const {this} needs a write barrier.
|
| @@ -2565,7 +2565,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| __ b(eq, &uninitialized_this);
|
| __ mov(r0, Operand(var->name()));
|
| __ Push(r0);
|
| - __ CallRuntime(Runtime::kThrowReferenceError, 1);
|
| + __ CallRuntime(Runtime::kThrowReferenceError);
|
| __ bind(&uninitialized_this);
|
| EmitStoreToStackLocalOrContextSlot(var, location);
|
|
|
| @@ -2577,7 +2577,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| __ mov(r1, Operand(var->name()));
|
| __ mov(r0, Operand(Smi::FromInt(language_mode())));
|
| __ Push(cp, r1, r0); // Context, name, language mode.
|
| - __ CallRuntime(Runtime::kStoreLookupSlot, 4);
|
| + __ CallRuntime(Runtime::kStoreLookupSlot);
|
| } else {
|
| // Assignment to var or initializing assignment to let/const in harmony
|
| // mode.
|
| @@ -2599,7 +2599,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| __ push(r0);
|
| __ mov(r0, Operand(var->name()));
|
| __ Push(cp, r0); // Context and name.
|
| - __ CallRuntime(Runtime::kInitializeLegacyConstLookupSlot, 3);
|
| + __ CallRuntime(Runtime::kInitializeLegacyConstLookupSlot);
|
| } else {
|
| DCHECK(var->IsStackAllocated() || var->IsContextSlot());
|
| Label skip;
|
| @@ -2614,7 +2614,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| } else {
|
| DCHECK(var->mode() == CONST_LEGACY && op != Token::INIT);
|
| if (is_strict(language_mode())) {
|
| - __ CallRuntime(Runtime::kThrowConstAssignError, 0);
|
| + __ CallRuntime(Runtime::kThrowConstAssignError);
|
| }
|
| // Silently ignore store in sloppy mode.
|
| }
|
| @@ -2649,8 +2649,7 @@ void FullCodeGenerator::EmitNamedSuperPropertyStore(Property* prop) {
|
| __ Push(key->value());
|
| __ Push(r0);
|
| __ CallRuntime((is_strict(language_mode()) ? Runtime::kStoreToSuper_Strict
|
| - : Runtime::kStoreToSuper_Sloppy),
|
| - 4);
|
| + : Runtime::kStoreToSuper_Sloppy));
|
| }
|
|
|
|
|
| @@ -2661,10 +2660,9 @@ void FullCodeGenerator::EmitKeyedSuperPropertyStore(Property* prop) {
|
| DCHECK(prop != NULL);
|
|
|
| __ Push(r0);
|
| - __ CallRuntime(
|
| - (is_strict(language_mode()) ? Runtime::kStoreKeyedToSuper_Strict
|
| - : Runtime::kStoreKeyedToSuper_Sloppy),
|
| - 4);
|
| + __ CallRuntime((is_strict(language_mode())
|
| + ? Runtime::kStoreKeyedToSuper_Strict
|
| + : Runtime::kStoreKeyedToSuper_Sloppy));
|
| }
|
|
|
|
|
| @@ -2792,7 +2790,7 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) {
|
| // - home_object
|
| // - key
|
| // - language_mode
|
| - __ CallRuntime(Runtime::kLoadFromSuper, 4);
|
| + __ CallRuntime(Runtime::kLoadFromSuper);
|
|
|
| // Replace home_object with target function.
|
| __ str(r0, MemOperand(sp, kPointerSize));
|
| @@ -2854,7 +2852,7 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) {
|
| // - home_object
|
| // - key
|
| // - language_mode
|
| - __ CallRuntime(Runtime::kLoadKeyedFromSuper, 4);
|
| + __ CallRuntime(Runtime::kLoadKeyedFromSuper);
|
|
|
| // Replace home_object with target function.
|
| __ str(r0, MemOperand(sp, kPointerSize));
|
| @@ -2909,7 +2907,7 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
|
|
|
| // Do the runtime call.
|
| __ Push(r4, r3, r2, r1);
|
| - __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5);
|
| + __ CallRuntime(Runtime::kResolvePossiblyDirectEval);
|
| }
|
|
|
|
|
| @@ -2929,7 +2927,7 @@ void FullCodeGenerator::PushCalleeAndWithBaseObject(Call* expr) {
|
| DCHECK(!context_register().is(r2));
|
| __ mov(r2, Operand(callee->name()));
|
| __ Push(context_register(), r2);
|
| - __ CallRuntime(Runtime::kLoadLookupSlot, 2);
|
| + __ CallRuntime(Runtime::kLoadLookupSlot);
|
| __ Push(r0, r1); // Function, receiver.
|
| PrepareForBailoutForId(expr->LookupId(), NO_REGISTERS);
|
|
|
| @@ -3572,7 +3570,7 @@ void FullCodeGenerator::EmitToInteger(CallRuntime* expr) {
|
| Label done_convert;
|
| __ JumpIfSmi(r0, &done_convert);
|
| __ Push(r0);
|
| - __ CallRuntime(Runtime::kToInteger, 1);
|
| + __ CallRuntime(Runtime::kToInteger);
|
| __ bind(&done_convert);
|
| context()->Plug(r0);
|
| }
|
| @@ -3592,7 +3590,7 @@ void FullCodeGenerator::EmitToName(CallRuntime* expr) {
|
| __ b(ls, &done_convert);
|
| __ bind(&convert);
|
| __ Push(r0);
|
| - __ CallRuntime(Runtime::kToName, 1);
|
| + __ CallRuntime(Runtime::kToName);
|
| __ bind(&done_convert);
|
| context()->Plug(r0);
|
| }
|
| @@ -4044,7 +4042,7 @@ void FullCodeGenerator::EmitCreateIterResultObject(CallRuntime* expr) {
|
| __ b(&done);
|
|
|
| __ bind(&runtime);
|
| - __ CallRuntime(Runtime::kCreateIterResultObject, 2);
|
| + __ CallRuntime(Runtime::kCreateIterResultObject);
|
|
|
| __ bind(&done);
|
| context()->Plug(r0);
|
| @@ -4137,8 +4135,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
|
| VisitForStackValue(property->key());
|
| __ CallRuntime(is_strict(language_mode())
|
| ? Runtime::kDeleteProperty_Strict
|
| - : Runtime::kDeleteProperty_Sloppy,
|
| - 2);
|
| + : Runtime::kDeleteProperty_Sloppy);
|
| context()->Plug(r0);
|
| } else if (proxy != NULL) {
|
| Variable* var = proxy->var();
|
| @@ -4150,7 +4147,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
|
| __ LoadGlobalObject(r2);
|
| __ mov(r1, Operand(var->name()));
|
| __ Push(r2, r1);
|
| - __ CallRuntime(Runtime::kDeleteProperty_Sloppy, 2);
|
| + __ CallRuntime(Runtime::kDeleteProperty_Sloppy);
|
| context()->Plug(r0);
|
| } else if (var->IsStackAllocated() || var->IsContextSlot()) {
|
| // Result of deleting non-global, non-dynamic variables is false.
|
| @@ -4162,7 +4159,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
|
| DCHECK(!context_register().is(r2));
|
| __ mov(r2, Operand(var->name()));
|
| __ Push(context_register(), r2);
|
| - __ CallRuntime(Runtime::kDeleteLookupSlot, 2);
|
| + __ CallRuntime(Runtime::kDeleteLookupSlot);
|
| context()->Plug(r0);
|
| }
|
| } else {
|
| @@ -4593,7 +4590,7 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
|
| switch (op) {
|
| case Token::IN:
|
| VisitForStackValue(expr->right());
|
| - __ CallRuntime(Runtime::kHasProperty, 2);
|
| + __ CallRuntime(Runtime::kHasProperty);
|
| PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
|
| __ CompareRoot(r0, Heap::kTrueValueRootIndex);
|
| Split(eq, if_true, if_false, fall_through);
|
|
|