Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 768a8ae2dc698bed9dd5e61d23a893049e024fd1..d40e74aa275401eb53c8da8b166982517b206709 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -235,13 +235,13 @@ void FullCodeGenerator::Generate() { |
if (FLAG_harmony_scoping && info->scope()->is_global_scope()) { |
__ Mov(x10, Operand(info->scope()->GetScopeInfo())); |
__ Push(x1, x10); |
- __ CallRuntime(Runtime::kNewGlobalContext, 2); |
+ __ CallRuntime(Runtime::kHiddenNewGlobalContext, 2); |
} else if (heap_slots <= FastNewContextStub::kMaximumSlots) { |
FastNewContextStub stub(heap_slots); |
__ CallStub(&stub); |
} else { |
__ Push(x1); |
- __ CallRuntime(Runtime::kNewFunctionContext, 1); |
+ __ CallRuntime(Runtime::kHiddenNewFunctionContext, 1); |
} |
function_in_register_x1 = false; |
// Context is returned in x0. It replaces the context passed to us. |
@@ -875,7 +875,7 @@ void FullCodeGenerator::VisitVariableDeclaration( |
// Pushing 0 (xzr) indicates no initial value. |
__ Push(cp, x2, x1, xzr); |
} |
- __ CallRuntime(Runtime::kDeclareContextSlot, 4); |
+ __ CallRuntime(Runtime::kHiddenDeclareContextSlot, 4); |
break; |
} |
} |
@@ -931,7 +931,7 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
__ Push(cp, x2, x1); |
// Push initial value for function declaration. |
VisitForStackValue(declaration->fun()); |
- __ CallRuntime(Runtime::kDeclareContextSlot, 4); |
+ __ CallRuntime(Runtime::kHiddenDeclareContextSlot, 4); |
break; |
} |
} |
@@ -1006,7 +1006,7 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
__ Mov(flags, Smi::FromInt(DeclareGlobalsFlags())); |
} |
__ Push(cp, x11, flags); |
- __ CallRuntime(Runtime::kDeclareGlobals, 3); |
+ __ CallRuntime(Runtime::kHiddenDeclareGlobals, 3); |
// Return value is ignored. |
} |
@@ -1014,7 +1014,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::kHiddenDeclareModules, 1); |
// Return value is ignored. |
} |
@@ -1367,7 +1367,7 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
__ LoadRoot(x10, pretenure ? Heap::kTrueValueRootIndex |
: Heap::kFalseValueRootIndex); |
__ Push(cp, x11, x10); |
- __ CallRuntime(Runtime::kNewClosure, 3); |
+ __ CallRuntime(Runtime::kHiddenNewClosure, 3); |
} |
context()->Plug(x0); |
} |
@@ -1483,7 +1483,7 @@ void FullCodeGenerator::EmitDynamicLookupFastCase(Variable* var, |
} else { // LET || CONST |
__ Mov(x0, Operand(var->name())); |
__ Push(x0); |
- __ CallRuntime(Runtime::kThrowReferenceError, 1); |
+ __ CallRuntime(Runtime::kHiddenThrowReferenceError, 1); |
} |
} |
__ B(done); |
@@ -1561,7 +1561,7 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
// binding in harmony mode. |
__ Mov(x0, Operand(var->name())); |
__ Push(x0); |
- __ CallRuntime(Runtime::kThrowReferenceError, 1); |
+ __ CallRuntime(Runtime::kHiddenThrowReferenceError, 1); |
__ Bind(&done); |
} else { |
// Uninitalized const bindings outside of harmony mode are unholed. |
@@ -1586,7 +1586,7 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
Comment cmnt(masm_, "Lookup variable"); |
__ Mov(x1, Operand(var->name())); |
__ Push(cp, x1); // Context and name. |
- __ CallRuntime(Runtime::kLoadContextSlot, 2); |
+ __ CallRuntime(Runtime::kHiddenLoadContextSlot, 2); |
__ Bind(&done); |
context()->Plug(x0); |
break; |
@@ -1618,7 +1618,7 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
__ Mov(x2, Operand(expr->pattern())); |
__ Mov(x1, Operand(expr->flags())); |
__ Push(x4, x3, x2, x1); |
- __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); |
+ __ CallRuntime(Runtime::kHiddenMaterializeRegExpLiteral, 4); |
__ Mov(x5, x0); |
__ Bind(&materialized); |
@@ -1630,7 +1630,7 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
__ Bind(&runtime_allocate); |
__ Mov(x10, Smi::FromInt(size)); |
__ Push(x5, x10); |
- __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
+ __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); |
__ Pop(x5); |
__ Bind(&allocated); |
@@ -1676,7 +1676,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
flags != ObjectLiteral::kFastElements || |
properties_count > max_cloned_properties) { |
__ Push(x3, x2, x1, x0); |
- __ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
+ __ CallRuntime(Runtime::kHiddenCreateObjectLiteral, 4); |
} else { |
FastCloneShallowObjectStub stub(properties_count); |
__ CallStub(&stub); |
@@ -1826,7 +1826,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
__ Mov(x0, Smi::FromInt(flags)); |
__ Push(x3, x2, x1, x0); |
- __ CallRuntime(Runtime::kCreateArrayLiteral, 4); |
+ __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); |
} else { |
ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) || |
FLAG_smi_only_arrays); |
@@ -2197,7 +2197,7 @@ void FullCodeGenerator::EmitCallStoreContextSlot( |
// jssp[16] : context. |
// jssp[24] : value. |
__ Push(x0, cp, x11, x10); |
- __ CallRuntime(Runtime::kStoreContextSlot, 4); |
+ __ CallRuntime(Runtime::kHiddenStoreContextSlot, 4); |
} |
@@ -2217,7 +2217,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
__ Push(x0); |
__ Mov(x0, Operand(var->name())); |
__ Push(cp, x0); // Context and name. |
- __ CallRuntime(Runtime::kInitializeConstContextSlot, 3); |
+ __ CallRuntime(Runtime::kHiddenInitializeConstContextSlot, 3); |
} else { |
ASSERT(var->IsStackLocal() || var->IsContextSlot()); |
Label skip; |
@@ -2240,7 +2240,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
__ JumpIfNotRoot(x10, Heap::kTheHoleValueRootIndex, &assign); |
__ Mov(x10, Operand(var->name())); |
__ Push(x10); |
- __ CallRuntime(Runtime::kThrowReferenceError, 1); |
+ __ CallRuntime(Runtime::kHiddenThrowReferenceError, 1); |
// Perform the assignment. |
__ Bind(&assign); |
EmitStoreToStackLocalOrContextSlot(var, location); |
@@ -2480,7 +2480,7 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
__ Push(x10, x11); |
// Do the runtime call. |
- __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); |
+ __ CallRuntime(Runtime::kHiddenResolvePossiblyDirectEval, 5); |
} |
@@ -2496,8 +2496,8 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
Call::CallType call_type = expr->GetCallType(isolate()); |
if (call_type == Call::POSSIBLY_EVAL_CALL) { |
- // In a call to eval, we first call %ResolvePossiblyDirectEval to |
- // resolve the function we need to call and the receiver of the |
+ // In a call to eval, we first call RuntimeHidden_ResolvePossiblyDirectEval |
+ // to resolve the function we need to call and the receiver of the |
// call. Then we call the resolved function using the given |
// arguments. |
ZoneList<Expression*>* args = expr->arguments(); |
@@ -2557,7 +2557,7 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
__ Push(context_register()); |
__ Mov(x10, Operand(proxy->name())); |
__ Push(x10); |
- __ CallRuntime(Runtime::kLoadContextSlot, 2); |
+ __ CallRuntime(Runtime::kHiddenLoadContextSlot, 2); |
__ Push(x0, x1); // Receiver, function. |
// If fast case code has been generated, emit code to push the |
@@ -3231,7 +3231,7 @@ void FullCodeGenerator::EmitDateField(CallRuntime* expr) { |
} |
__ Bind(¬_date_object); |
- __ CallRuntime(Runtime::kThrowNotDateError, 0); |
+ __ CallRuntime(Runtime::kHiddenThrowNotDateError, 0); |
__ Bind(&done); |
context()->Plug(x0); |
} |
@@ -3945,7 +3945,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
// context where the variable was introduced. |
__ Mov(x2, Operand(var->name())); |
__ Push(context_register(), x2); |
- __ CallRuntime(Runtime::kDeleteContextSlot, 2); |
+ __ CallRuntime(Runtime::kHiddenDeleteContextSlot, 2); |
context()->Plug(x0); |
} |
} else { |
@@ -4225,7 +4225,7 @@ void FullCodeGenerator::VisitForTypeofValue(Expression* expr) { |
__ Bind(&slow); |
__ Mov(x0, Operand(proxy->name())); |
__ Push(cp, x0); |
- __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); |
+ __ CallRuntime(Runtime::kHiddenLoadContextSlotNoReferenceError, 2); |
PrepareForBailout(expr, TOS_REG); |
__ Bind(&done); |
@@ -4476,7 +4476,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ Cmp(__ StackPointer(), x1); |
__ B(eq, &post_runtime); |
__ Push(x0); // generator object |
- __ CallRuntime(Runtime::kSuspendJSGeneratorObject, 1); |
+ __ CallRuntime(Runtime::kHiddenSuspendJSGeneratorObject, 1); |
__ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
__ Bind(&post_runtime); |
__ Pop(result_register()); |
@@ -4547,7 +4547,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ Mov(x1, cp); |
__ RecordWriteField(x0, JSGeneratorObject::kContextOffset, x1, x2, |
kLRHasBeenSaved, kDontSaveFPRegs); |
- __ CallRuntime(Runtime::kSuspendJSGeneratorObject, 1); |
+ __ CallRuntime(Runtime::kHiddenSuspendJSGeneratorObject, 1); |
__ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
__ Pop(x0); // result |
EmitReturnSequence(); |
@@ -4606,7 +4606,7 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
Register function = x4; |
// The value stays in x0, and is ultimately read by the resumed generator, as |
- // if the CallRuntime(Runtime::kSuspendJSGeneratorObject) returned it. Or it |
+ // if CallRuntime(Runtime::kHiddenSuspendJSGeneratorObject) returned it. Or it |
// is read to throw the value when the resumed generator is already closed. r1 |
// will hold the generator object until the activation has been resumed. |
VisitForStackValue(generator); |
@@ -4688,7 +4688,7 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
__ Mov(x10, Smi::FromInt(resume_mode)); |
__ Push(generator_object, result_register(), x10); |
- __ CallRuntime(Runtime::kResumeJSGeneratorObject, 3); |
+ __ CallRuntime(Runtime::kHiddenResumeJSGeneratorObject, 3); |
// Not reached: the runtime call returns elsewhere. |
__ Unreachable(); |
@@ -4703,14 +4703,14 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
} else { |
// Throw the provided value. |
__ Push(value_reg); |
- __ CallRuntime(Runtime::kThrow, 1); |
+ __ CallRuntime(Runtime::kHiddenThrow, 1); |
} |
__ B(&done); |
// Throw error if we attempt to operate on a running generator. |
__ Bind(&wrong_state); |
__ Push(generator_object); |
- __ CallRuntime(Runtime::kThrowGeneratorStateError, 1); |
+ __ CallRuntime(Runtime::kHiddenThrowGeneratorStateError, 1); |
__ Bind(&done); |
context()->Plug(result_register()); |
@@ -4731,7 +4731,7 @@ void FullCodeGenerator::EmitCreateIteratorResult(bool done) { |
__ Bind(&gc_required); |
__ Push(Smi::FromInt(map->instance_size())); |
- __ CallRuntime(Runtime::kAllocateInNewSpace, 1); |
+ __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); |
__ Ldr(context_register(), |
MemOperand(fp, StandardFrameConstants::kContextOffset)); |