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

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

Change-Id: Ib3fef6771f7878c8760b4820e54b06e853d6be3d
Reviewed-on: https://chromium-review.googlesource.com/c/1320489
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Ivica Bogosavljevic <ibogosavljevic@wavecomp.com>
Commit-Queue: Ivica Bogosavljevic <ibogosavljevic@wavecomp.com>
Cr-Commit-Position: refs/heads/master@{#57309}
This commit is contained in:
Predrag Rudic 2018-11-06 19:57:56 +01:00 committed by Commit Bot
parent cff29e8dc0
commit 47ae51f70b
4 changed files with 10 additions and 10 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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,

View File

@ -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,