Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2795)

Side by Side Diff: src/x87/lithium-codegen-x87.cc

Issue 1376333003: Eliminate no_frame_range data (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 info()->set_prologue_offset(masm_->pc_offset()); 155 info()->set_prologue_offset(masm_->pc_offset());
156 if (NeedsEagerFrame()) { 156 if (NeedsEagerFrame()) {
157 DCHECK(!frame_is_built_); 157 DCHECK(!frame_is_built_);
158 frame_is_built_ = true; 158 frame_is_built_ = true;
159 if (info()->IsStub()) { 159 if (info()->IsStub()) {
160 __ StubPrologue(); 160 __ StubPrologue();
161 } else { 161 } else {
162 __ Prologue(info()->IsCodePreAgingActive()); 162 __ Prologue(info()->IsCodePreAgingActive());
163 } 163 }
164 info()->AddNoFrameRange(0, masm_->pc_offset());
165 } 164 }
166 165
167 if (info()->IsOptimizing() && 166 if (info()->IsOptimizing() &&
168 dynamic_frame_alignment_ && 167 dynamic_frame_alignment_ &&
169 FLAG_debug_code) { 168 FLAG_debug_code) {
170 __ test(esp, Immediate(kPointerSize)); 169 __ test(esp, Immediate(kPointerSize));
171 __ Assert(zero, kFrameIsExpectedToBeAligned); 170 __ Assert(zero, kFrameIsExpectedToBeAligned);
172 } 171 }
173 172
174 // Reserve space for the stack slots needed by the code. 173 // Reserve space for the stack slots needed by the code.
(...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 // safe to write to the context register. 2974 // safe to write to the context register.
2976 __ push(eax); 2975 __ push(eax);
2977 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 2976 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
2978 __ CallRuntime(Runtime::kTraceExit, 1); 2977 __ CallRuntime(Runtime::kTraceExit, 1);
2979 } 2978 }
2980 if (dynamic_frame_alignment_) { 2979 if (dynamic_frame_alignment_) {
2981 // Fetch the state of the dynamic frame alignment. 2980 // Fetch the state of the dynamic frame alignment.
2982 __ mov(edx, Operand(ebp, 2981 __ mov(edx, Operand(ebp,
2983 JavaScriptFrameConstants::kDynamicAlignmentStateOffset)); 2982 JavaScriptFrameConstants::kDynamicAlignmentStateOffset));
2984 } 2983 }
2985 int no_frame_start = -1;
2986 if (NeedsEagerFrame()) { 2984 if (NeedsEagerFrame()) {
2987 __ mov(esp, ebp); 2985 __ mov(esp, ebp);
2988 __ pop(ebp); 2986 __ pop(ebp);
2989 no_frame_start = masm_->pc_offset();
2990 } 2987 }
2991 if (dynamic_frame_alignment_) { 2988 if (dynamic_frame_alignment_) {
2992 Label no_padding; 2989 Label no_padding;
2993 __ cmp(edx, Immediate(kNoAlignmentPadding)); 2990 __ cmp(edx, Immediate(kNoAlignmentPadding));
2994 __ j(equal, &no_padding, Label::kNear); 2991 __ j(equal, &no_padding, Label::kNear);
2995 2992
2996 EmitReturn(instr, true); 2993 EmitReturn(instr, true);
2997 __ bind(&no_padding); 2994 __ bind(&no_padding);
2998 } 2995 }
2999 2996
3000 EmitReturn(instr, false); 2997 EmitReturn(instr, false);
3001 if (no_frame_start != -1) {
3002 info()->AddNoFrameRange(no_frame_start, masm_->pc_offset());
3003 }
3004 } 2998 }
3005 2999
3006 3000
3007 template <class T> 3001 template <class T>
3008 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 3002 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
3009 Register vector_register = ToRegister(instr->temp_vector()); 3003 Register vector_register = ToRegister(instr->temp_vector());
3010 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 3004 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
3011 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 3005 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
3012 DCHECK(slot_register.is(eax)); 3006 DCHECK(slot_register.is(eax));
3013 3007
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after
6338 RecordSafepoint(Safepoint::kNoLazyDeopt); 6332 RecordSafepoint(Safepoint::kNoLazyDeopt);
6339 } 6333 }
6340 6334
6341 6335
6342 #undef __ 6336 #undef __
6343 6337
6344 } // namespace internal 6338 } // namespace internal
6345 } // namespace v8 6339 } // namespace v8
6346 6340
6347 #endif // V8_TARGET_ARCH_X87 6341 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698