From ce8f4df9b27e6b2b49990e3e19a6ea06af9375e4 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Wed, 2 May 2012 12:13:39 +0000 Subject: [PATCH] Small patch to save one jump instruction and one label bind in JSEntryStub. BUG=v8:2105 TEST= Review URL: https://chromiumcodereview.appspot.com/10249003 Patch from Zhongping Wang . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ia32/code-stubs-ia32.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc index 6cd0233..a1c6edd 100644 --- a/src/ia32/code-stubs-ia32.cc +++ b/src/ia32/code-stubs-ia32.cc @@ -5014,11 +5014,9 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { __ j(not_equal, ¬_outermost_js, Label::kNear); __ mov(Operand::StaticVariable(js_entry_sp), ebp); __ push(Immediate(Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME))); - Label cont; - __ jmp(&cont, Label::kNear); + __ jmp(&invoke, Label::kNear); __ bind(¬_outermost_js); __ push(Immediate(Smi::FromInt(StackFrame::INNER_JSENTRY_FRAME))); - __ bind(&cont); // Jump to a faked try block that does the invoke, with a faked catch // block that sets the pending exception. -- 2.7.4