From b2523d349b12d3123df12f548833a8863503f9ea Mon Sep 17 00:00:00 2001 From: Toon Verwaest Date: Mon, 9 Oct 2017 19:35:30 +0200 Subject: [PATCH] [macro-assembler] Delete unused LoadGlobalObject Bug: Change-Id: I78403ce3c36f3c8276358f0bafff88131b2c7c00 Reviewed-on: https://chromium-review.googlesource.com/707316 Reviewed-by: Camillo Bruni Commit-Queue: Toon Verwaest Cr-Commit-Position: refs/heads/master@{#48401} --- src/arm/macro-assembler-arm.h | 5 ----- src/arm64/macro-assembler-arm64.h | 5 ----- src/mips/macro-assembler-mips.h | 5 ----- src/mips64/macro-assembler-mips64.h | 5 ----- src/ppc/macro-assembler-ppc.h | 5 ----- src/s390/macro-assembler-s390.h | 5 ----- 6 files changed, 30 deletions(-) diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h index 4e1c9bd63f..d8dded8cc1 100644 --- a/src/arm/macro-assembler-arm.h +++ b/src/arm/macro-assembler-arm.h @@ -683,11 +683,6 @@ class MacroAssembler : public TurboAssembler { bool restore_context, bool argument_count_is_length = false); - // Load the global object from the current context. - void LoadGlobalObject(Register dst) { - LoadNativeContextSlot(Context::EXTENSION_INDEX, dst); - } - // Load the global proxy from the current context. void LoadGlobalProxy(Register dst) { LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst); diff --git a/src/arm64/macro-assembler-arm64.h b/src/arm64/macro-assembler-arm64.h index 22342cace8..170266ca9d 100644 --- a/src/arm64/macro-assembler-arm64.h +++ b/src/arm64/macro-assembler-arm64.h @@ -1997,11 +1997,6 @@ class MacroAssembler : public TurboAssembler { const Register& scratch, bool restore_context); - // Load the global object from the current context. - void LoadGlobalObject(Register dst) { - LoadNativeContextSlot(Context::EXTENSION_INDEX, dst); - } - // Load the global proxy from the current context. void LoadGlobalProxy(Register dst) { LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst); diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h index ca1b7307eb..86934ee5a6 100644 --- a/src/mips/macro-assembler-mips.h +++ b/src/mips/macro-assembler-mips.h @@ -1041,11 +1041,6 @@ class MacroAssembler : public TurboAssembler { // Make sure the stack is aligned. Only emits code in debug mode. void AssertStackIsAligned(); - // Load the global object from the current context. - void LoadGlobalObject(Register dst) { - LoadNativeContextSlot(Context::EXTENSION_INDEX, dst); - } - // Load the global proxy from the current context. void LoadGlobalProxy(Register dst) { LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst); diff --git a/src/mips64/macro-assembler-mips64.h b/src/mips64/macro-assembler-mips64.h index c43a322458..1f1bb4bdb0 100644 --- a/src/mips64/macro-assembler-mips64.h +++ b/src/mips64/macro-assembler-mips64.h @@ -1114,11 +1114,6 @@ class MacroAssembler : public TurboAssembler { // Make sure the stack is aligned. Only emits code in debug mode. void AssertStackIsAligned(); - // Load the global object from the current context. - void LoadGlobalObject(Register dst) { - LoadNativeContextSlot(Context::EXTENSION_INDEX, dst); - } - // Load the global proxy from the current context. void LoadGlobalProxy(Register dst) { LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst); diff --git a/src/ppc/macro-assembler-ppc.h b/src/ppc/macro-assembler-ppc.h index d4f84c7527..cc1d7a151e 100644 --- a/src/ppc/macro-assembler-ppc.h +++ b/src/ppc/macro-assembler-ppc.h @@ -746,11 +746,6 @@ class MacroAssembler : public TurboAssembler { bool restore_context, bool argument_count_is_length = false); - // Load the global object from the current context. - void LoadGlobalObject(Register dst) { - LoadNativeContextSlot(Context::EXTENSION_INDEX, dst); - } - // Load the global proxy from the current context. void LoadGlobalProxy(Register dst) { LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst); diff --git a/src/s390/macro-assembler-s390.h b/src/s390/macro-assembler-s390.h index ba0b001946..707b21f1bb 100644 --- a/src/s390/macro-assembler-s390.h +++ b/src/s390/macro-assembler-s390.h @@ -1178,11 +1178,6 @@ class MacroAssembler : public TurboAssembler { void EnterBuiltinFrame(Register context, Register target, Register argc); void LeaveBuiltinFrame(Register context, Register target, Register argc); - // Load the global object from the current context. - void LoadGlobalObject(Register dst) { - LoadNativeContextSlot(Context::EXTENSION_INDEX, dst); - } - // Load the global proxy from the current context. void LoadGlobalProxy(Register dst) { LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst);