From 9f583d05a28490c2d876d653e4912bba8f4dd004 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Fri, 7 May 2010 11:55:24 +0000 Subject: [PATCH] Remove unused function in ia32 code generator Review URL: http://codereview.chromium.org/1996006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4614 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ia32/codegen-ia32.cc | 8 -------- src/ia32/codegen-ia32.h | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc index 74a343b..6bb98b8 100644 --- a/src/ia32/codegen-ia32.cc +++ b/src/ia32/codegen-ia32.cc @@ -829,14 +829,6 @@ void CodeGenerator::LoadReference(Reference* ref) { } -void CodeGenerator::UnloadReference(Reference* ref) { - // Pop a reference from the stack while preserving TOS. - Comment cmnt(masm_, "[ UnloadReference"); - frame_->Nip(ref->size()); - ref->set_unloaded(); -} - - // ECMA-262, section 9.2, page 30: ToBoolean(). Pop the top of stack and // convert it to a boolean in the condition code register or jump to // 'false_target'/'true_target' as appropriate. diff --git a/src/ia32/codegen-ia32.h b/src/ia32/codegen-ia32.h index 0d3fee5..5967338 100644 --- a/src/ia32/codegen-ia32.h +++ b/src/ia32/codegen-ia32.h @@ -48,7 +48,7 @@ enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; // A reference is a C++ stack-allocated object that puts a // reference on the virtual frame. The reference may be consumed -// by GetValue, TakeValue, SetValue, and Codegen::UnloadReference. +// by GetValue, TakeValue and SetValue. // When the lifetime (scope) of a valid reference ends, it must have // been consumed, and be in state UNLOADED. class Reference BASE_EMBEDDED { @@ -414,7 +414,6 @@ class CodeGenerator: public AstVisitor { // The following are used by class Reference. void LoadReference(Reference* ref); - void UnloadReference(Reference* ref); static Operand ContextOperand(Register context, int index) { return Operand(context, Context::SlotOffset(index)); -- 2.7.4