From: yangguo@chromium.org Date: Wed, 2 May 2012 12:13:39 +0000 (+0000) Subject: Small patch to save one jump instruction and one label bind in JSEntryStub. X-Git-Tag: upstream/4.7.83~16769 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce8f4df9b27e6b2b49990e3e19a6ea06af9375e4;p=platform%2Fupstream%2Fv8.git 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 --- 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.