Commit 47ae51f7 authored by Predrag Rudic's avatar Predrag Rudic Committed by Commit Bot

MIPS[64] Fix build failure after porting Smi to new design.

After commit 6d706ae3, MIPS builders
started to fail. This CL completes that commit.

Change-Id: Ib3fef6771f7878c8760b4820e54b06e853d6be3d
Reviewed-on: https://chromium-review.googlesource.com/c/1320489Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarIvica Bogosavljevic <ibogosavljevic@wavecomp.com>
Commit-Queue: Ivica Bogosavljevic <ibogosavljevic@wavecomp.com>
Cr-Commit-Position: refs/heads/master@{#57309}
parent cff29e8d
......@@ -1070,7 +1070,7 @@ static void Generate_InterpreterEnterBytecode(MacroAssembler* masm) {
Label builtin_trampoline, trampoline_loaded;
Smi interpreter_entry_return_pc_offset(
masm->isolate()->heap()->interpreter_entry_return_pc_offset());
DCHECK_NE(interpreter_entry_return_pc_offset, Smi::kZero);
DCHECK_NE(interpreter_entry_return_pc_offset, Smi::zero());
// If the SFI function_data is an InterpreterData, get the trampoline stored
// in it, otherwise get the trampoline from the builtins list.
......@@ -1303,7 +1303,7 @@ void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
}
// If the code object is null, just return to the caller.
__ Ret(eq, v0, Operand(Smi::kZero));
__ Ret(eq, v0, Operand(Smi::zero()));
// Drop the handler frame that is be sitting on top of the actual
// JavaScript frame. This is the case then OSR is triggered from bytecode.
......@@ -1543,7 +1543,7 @@ static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
__ sll(a0, a0, kSmiTagSize);
__ li(t0, Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR)));
__ MultiPush(a0.bit() | a1.bit() | t0.bit() | fp.bit() | ra.bit());
__ Push(Smi::kZero); // Padding.
__ Push(Smi::zero()); // Padding.
__ Addu(fp, sp,
Operand(ArgumentsAdaptorFrameConstants::kFixedFrameSizeFromFp));
}
......@@ -2268,7 +2268,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
WasmInstanceObject::kCEntryStubOffset));
// Initialize the JavaScript context with 0. CEntry will use it to
// set the current context on the isolate.
__ Move(kContextRegister, Smi::kZero);
__ Move(kContextRegister, Smi::zero());
__ CallRuntimeWithCEntry(Runtime::kWasmCompileLazy, a2);
// Restore registers.
......
......@@ -1069,7 +1069,7 @@ static void Generate_InterpreterEnterBytecode(MacroAssembler* masm) {
Label builtin_trampoline, trampoline_loaded;
Smi interpreter_entry_return_pc_offset(
masm->isolate()->heap()->interpreter_entry_return_pc_offset());
DCHECK_NE(interpreter_entry_return_pc_offset, Smi::kZero);
DCHECK_NE(interpreter_entry_return_pc_offset, Smi::zero());
// If the SFI function_data is an InterpreterData, get the trampoline stored
// in it, otherwise get the trampoline from the builtins list.
......@@ -1300,7 +1300,7 @@ void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
}
// If the code object is null, just return to the caller.
__ Ret(eq, v0, Operand(Smi::kZero));
__ Ret(eq, v0, Operand(Smi::zero()));
// Drop the handler frame that is be sitting on top of the actual
// JavaScript frame. This is the case then OSR is triggered from bytecode.
......@@ -1556,7 +1556,7 @@ static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
__ SmiTag(a0);
__ li(a4, Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR)));
__ MultiPush(a0.bit() | a1.bit() | a4.bit() | fp.bit() | ra.bit());
__ Push(Smi::kZero); // Padding.
__ Push(Smi::zero()); // Padding.
__ Daddu(fp, sp,
Operand(ArgumentsAdaptorFrameConstants::kFixedFrameSizeFromFp));
}
......@@ -2286,7 +2286,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
WasmInstanceObject::kCEntryStubOffset));
// Initialize the JavaScript context with 0. CEntry will use it to
// set the current context on the isolate.
__ Move(kContextRegister, Smi::kZero);
__ Move(kContextRegister, Smi::zero());
__ CallRuntimeWithCEntry(Runtime::kWasmCompileLazy, a2);
// Restore registers.
......
......@@ -4097,7 +4097,7 @@ void MacroAssembler::PushStackHandler() {
STATIC_ASSERT(StackHandlerConstants::kSize == 2 * kPointerSize);
STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
Push(Smi::kZero); // Padding.
Push(Smi::zero()); // Padding.
// Link the current handler as the next handler.
li(t2,
......
......@@ -4442,7 +4442,7 @@ void MacroAssembler::PushStackHandler() {
STATIC_ASSERT(StackHandlerConstants::kSize == 2 * kPointerSize);
STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
Push(Smi::kZero); // Padding.
Push(Smi::zero()); // Padding.
// Link the current handler as the next handler.
li(a6,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment