diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc index 417e9012de..545c25ef85 100644 --- a/src/builtins/ppc/builtins-ppc.cc +++ b/src/builtins/ppc/builtins-ppc.cc @@ -384,7 +384,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { __ Move(ip, debug_hook); __ LoadByte(ip, MemOperand(ip), r0); __ extsb(ip, ip); - __ CmpSmiLiteral(ip, Smi::kZero, r0); + __ CmpSmiLiteral(ip, Smi::zero(), r0); __ bne(&prepare_step_in_if_stepping); // Flood function if we need to continue stepping in the suspended generator. @@ -1103,7 +1103,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. @@ -1340,7 +1340,7 @@ void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { // If the code object is null, just return to the caller. Label skip; - __ CmpSmiLiteral(r3, Smi::kZero, r0); + __ CmpSmiLiteral(r3, Smi::zero(), r0); __ bne(&skip); __ Ret(); @@ -1598,7 +1598,7 @@ static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { } else { __ Push(fp, r7, r4, r3); } - __ Push(Smi::kZero); // Padding. + __ Push(Smi::zero()); // Padding. __ addi(fp, sp, Operand(ArgumentsAdaptorFrameConstants::kFixedFrameSizeFromFp)); } @@ -2296,7 +2296,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. - __ LoadSmiLiteral(cp, Smi::kZero); + __ LoadSmiLiteral(cp, Smi::zero()); __ CallRuntimeWithCEntry(Runtime::kWasmCompileLazy, r5); // The entrypoint address is the return value. __ mr(r11, kReturnRegister0); diff --git a/src/builtins/s390/builtins-s390.cc b/src/builtins/s390/builtins-s390.cc index 5e0c656a16..1dc1637207 100644 --- a/src/builtins/s390/builtins-s390.cc +++ b/src/builtins/s390/builtins-s390.cc @@ -375,7 +375,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { ExternalReference::debug_hook_on_function_call_address(masm->isolate()); __ Move(ip, debug_hook); __ LoadB(ip, MemOperand(ip)); - __ CmpSmiLiteral(ip, Smi::kZero, r0); + __ CmpSmiLiteral(ip, Smi::zero(), r0); __ bne(&prepare_step_in_if_stepping); // Flood function if we need to continue stepping in the suspended generator. @@ -1108,7 +1108,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. @@ -1342,7 +1342,7 @@ void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { // If the code object is null, just return to the caller. Label skip; - __ CmpSmiLiteral(r2, Smi::kZero, r0); + __ CmpSmiLiteral(r2, Smi::zero(), r0); __ bne(&skip); __ Ret(); @@ -1602,7 +1602,7 @@ static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { __ StoreP(r6, MemOperand(sp, 2 * kPointerSize)); __ StoreP(r3, MemOperand(sp, 1 * kPointerSize)); __ StoreP(r2, MemOperand(sp, 0 * kPointerSize)); - __ Push(Smi::kZero); // Padding. + __ Push(Smi::zero()); // Padding. __ la(fp, MemOperand(sp, ArgumentsAdaptorFrameConstants::kFixedFrameSizeFromFp)); } @@ -2303,7 +2303,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. - __ LoadSmiLiteral(cp, Smi::kZero); + __ LoadSmiLiteral(cp, Smi::zero()); __ CallRuntimeWithCEntry(Runtime::kWasmCompileLazy, r4); // The entrypoint address is the return value. __ LoadRR(ip, r2); diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc index a6482bb24d..914ecaa1c4 100644 --- a/src/compiler/ppc/code-generator-ppc.cc +++ b/src/compiler/ppc/code-generator-ppc.cc @@ -2382,7 +2382,7 @@ void CodeGenerator::AssembleConstructFrame() { FieldMemOperand(kWasmInstanceRegister, WasmInstanceObject::kCEntryStubOffset), r0); - __ Move(cp, Smi::kZero); + __ Move(cp, Smi::zero()); __ CallRuntimeWithCEntry(Runtime::kThrowWasmStackOverflow, r5); // We come from WebAssembly, there are no references for the GC. ReferenceMap* reference_map = new (zone()) ReferenceMap(zone()); diff --git a/src/compiler/s390/code-generator-s390.cc b/src/compiler/s390/code-generator-s390.cc index 718d349007..220c9cba85 100644 --- a/src/compiler/s390/code-generator-s390.cc +++ b/src/compiler/s390/code-generator-s390.cc @@ -3068,7 +3068,7 @@ void CodeGenerator::AssembleConstructFrame() { __ LoadP(r4, FieldMemOperand(kWasmInstanceRegister, WasmInstanceObject::kCEntryStubOffset)); - __ Move(cp, Smi::kZero); + __ Move(cp, Smi::zero()); __ CallRuntimeWithCEntry(Runtime::kThrowWasmStackOverflow, r4); // We come from WebAssembly, there are no references for the GC. ReferenceMap* reference_map = new (zone()) ReferenceMap(zone()); diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc index 7e287b08b8..c6be7e8a3f 100644 --- a/src/ppc/code-stubs-ppc.cc +++ b/src/ppc/code-stubs-ppc.cc @@ -581,7 +581,7 @@ void CallApiGetterStub::Generate(MacroAssembler* masm) { __ Push(scratch, scratch); __ Move(scratch, ExternalReference::isolate_address(isolate())); __ Push(scratch, holder); - __ Push(Smi::kZero); // should_throw_on_error -> false + __ Push(Smi::zero()); // should_throw_on_error -> false __ LoadP(scratch, FieldMemOperand(callback, AccessorInfo::kNameOffset)); __ push(scratch); diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc index 929aaf5b82..d1a2779b09 100644 --- a/src/ppc/macro-assembler-ppc.cc +++ b/src/ppc/macro-assembler-ppc.cc @@ -1284,7 +1284,7 @@ void MacroAssembler::CheckDebugHook(Register fun, Register new_target, Move(r7, debug_hook_active); LoadByte(r7, MemOperand(r7), r0); extsb(r7, r7); - CmpSmiLiteral(r7, Smi::kZero, r0); + CmpSmiLiteral(r7, Smi::zero(), r0); beq(&skip_hook); { @@ -1421,7 +1421,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. // Preserve r3-r7. diff --git a/src/s390/code-stubs-s390.cc b/src/s390/code-stubs-s390.cc index 9a8111ffcf..e041b24b74 100644 --- a/src/s390/code-stubs-s390.cc +++ b/src/s390/code-stubs-s390.cc @@ -613,7 +613,7 @@ void CallApiGetterStub::Generate(MacroAssembler* masm) { __ Push(scratch, scratch); __ Move(scratch, ExternalReference::isolate_address(isolate())); __ Push(scratch, holder); - __ Push(Smi::kZero); // should_throw_on_error -> false + __ Push(Smi::zero()); // should_throw_on_error -> false __ LoadP(scratch, FieldMemOperand(callback, AccessorInfo::kNameOffset)); __ push(scratch); diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc index f7cf526ab8..28a86ea63c 100644 --- a/src/s390/macro-assembler-s390.cc +++ b/src/s390/macro-assembler-s390.cc @@ -1496,7 +1496,7 @@ void MacroAssembler::PushStackHandler() { lay(sp, MemOperand(sp, -StackHandlerConstants::kSize)); // Store padding. - mov(r0, Operand(Smi::kZero)); + lghi(r0, Operand::Zero()); StoreP(r0, MemOperand(sp)); // Padding. // Copy the old handler into the next handler slot.