From: mstarzinger@chromium.org Date: Thu, 14 Nov 2013 16:03:55 +0000 (+0000) Subject: Remove obsolete distance switch in SubStringStub::Generate. X-Git-Tag: upstream/4.7.83~11740 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=883a5c803c1e75af4a0c73308885759b7645e63b;p=platform%2Fupstream%2Fv8.git Remove obsolete distance switch in SubStringStub::Generate. R=ulan@chromium.org Review URL: https://codereview.chromium.org/72073004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17754 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc index 4ccda2d..a3fb077 100644 --- a/src/x64/code-stubs-x64.cc +++ b/src/x64/code-stubs-x64.cc @@ -4224,15 +4224,9 @@ void SubStringStub::Generate(MacroAssembler* masm) { STATIC_ASSERT((kStringEncodingMask & kOneByteStringTag) != 0); STATIC_ASSERT((kStringEncodingMask & kTwoByteStringTag) == 0); __ testb(rbx, Immediate(kStringEncodingMask)); - // Make long jumps when allocations tracking is on due to - // RecordObjectAllocation inside MacroAssembler::Allocate. - Label::Distance jump_distance = - masm->isolate()->heap_profiler()->is_tracking_allocations() - ? Label::kFar - : Label::kNear; - __ j(zero, &two_byte_slice, jump_distance); + __ j(zero, &two_byte_slice, Label::kNear); __ AllocateAsciiSlicedString(rax, rbx, r14, &runtime); - __ jmp(&set_slice_header, jump_distance); + __ jmp(&set_slice_header, Label::kNear); __ bind(&two_byte_slice); __ AllocateTwoByteSlicedString(rax, rbx, r14, &runtime); __ bind(&set_slice_header);