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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | 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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 info()->set_prologue_offset(masm_->pc_offset()); 160 info()->set_prologue_offset(masm_->pc_offset());
161 if (NeedsEagerFrame()) { 161 if (NeedsEagerFrame()) {
162 if (info()->IsStub()) { 162 if (info()->IsStub()) {
163 __ StubPrologue(); 163 __ StubPrologue();
164 } else { 164 } else {
165 __ Prologue(info()->IsCodePreAgingActive()); 165 __ Prologue(info()->IsCodePreAgingActive());
166 } 166 }
167 frame_is_built_ = true; 167 frame_is_built_ = true;
168 info_->AddNoFrameRange(0, masm_->pc_offset());
169 } 168 }
170 169
171 // Reserve space for the stack slots needed by the code. 170 // Reserve space for the stack slots needed by the code.
172 int slots = GetStackSlotCount(); 171 int slots = GetStackSlotCount();
173 if (slots > 0) { 172 if (slots > 0) {
174 if (FLAG_debug_code) { 173 if (FLAG_debug_code) {
175 __ Subu(sp, sp, Operand(slots * kPointerSize)); 174 __ Subu(sp, sp, Operand(slots * kPointerSize));
176 __ Push(a0, a1); 175 __ Push(a0, a1);
177 __ Addu(a0, sp, Operand(slots * kPointerSize)); 176 __ Addu(a0, sp, Operand(slots * kPointerSize));
178 __ li(a1, Operand(kSlotsZapValue)); 177 __ li(a1, Operand(kSlotsZapValue));
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 // Runtime::TraceExit returns its parameter in v0. We're leaving the code 2678 // Runtime::TraceExit returns its parameter in v0. We're leaving the code
2680 // managed by the register allocator and tearing down the frame, it's 2679 // managed by the register allocator and tearing down the frame, it's
2681 // safe to write to the context register. 2680 // safe to write to the context register.
2682 __ push(v0); 2681 __ push(v0);
2683 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2682 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2684 __ CallRuntime(Runtime::kTraceExit, 1); 2683 __ CallRuntime(Runtime::kTraceExit, 1);
2685 } 2684 }
2686 if (info()->saves_caller_doubles()) { 2685 if (info()->saves_caller_doubles()) {
2687 RestoreCallerDoubles(); 2686 RestoreCallerDoubles();
2688 } 2687 }
2689 int no_frame_start = -1;
2690 if (NeedsEagerFrame()) { 2688 if (NeedsEagerFrame()) {
2691 __ mov(sp, fp); 2689 __ mov(sp, fp);
2692 no_frame_start = masm_->pc_offset();
2693 __ Pop(ra, fp); 2690 __ Pop(ra, fp);
2694 } 2691 }
2695 if (instr->has_constant_parameter_count()) { 2692 if (instr->has_constant_parameter_count()) {
2696 int parameter_count = ToInteger32(instr->constant_parameter_count()); 2693 int parameter_count = ToInteger32(instr->constant_parameter_count());
2697 int32_t sp_delta = (parameter_count + 1) * kPointerSize; 2694 int32_t sp_delta = (parameter_count + 1) * kPointerSize;
2698 if (sp_delta != 0) { 2695 if (sp_delta != 0) {
2699 __ Addu(sp, sp, Operand(sp_delta)); 2696 __ Addu(sp, sp, Operand(sp_delta));
2700 } 2697 }
2701 } else { 2698 } else {
2702 DCHECK(info()->IsStub()); // Functions would need to drop one more value. 2699 DCHECK(info()->IsStub()); // Functions would need to drop one more value.
2703 Register reg = ToRegister(instr->parameter_count()); 2700 Register reg = ToRegister(instr->parameter_count());
2704 // The argument count parameter is a smi 2701 // The argument count parameter is a smi
2705 __ SmiUntag(reg); 2702 __ SmiUntag(reg);
2706 __ sll(at, reg, kPointerSizeLog2); 2703 __ sll(at, reg, kPointerSizeLog2);
2707 __ Addu(sp, sp, at); 2704 __ Addu(sp, sp, at);
2708 } 2705 }
2709 2706
2710 __ Jump(ra); 2707 __ Jump(ra);
2711
2712 if (no_frame_start != -1) {
2713 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset());
2714 }
2715 } 2708 }
2716 2709
2717 2710
2718 template <class T> 2711 template <class T>
2719 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 2712 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
2720 Register vector_register = ToRegister(instr->temp_vector()); 2713 Register vector_register = ToRegister(instr->temp_vector());
2721 Register slot_register = LoadWithVectorDescriptor::SlotRegister(); 2714 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
2722 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister())); 2715 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
2723 DCHECK(slot_register.is(a0)); 2716 DCHECK(slot_register.is(a0));
2724 2717
(...skipping 3175 matching lines...) Expand 10 before | Expand all | Expand 10 after
5900 __ Push(at, ToRegister(instr->function())); 5893 __ Push(at, ToRegister(instr->function()));
5901 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5894 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5902 RecordSafepoint(Safepoint::kNoLazyDeopt); 5895 RecordSafepoint(Safepoint::kNoLazyDeopt);
5903 } 5896 }
5904 5897
5905 5898
5906 #undef __ 5899 #undef __
5907 5900
5908 } // namespace internal 5901 } // namespace internal
5909 } // namespace v8 5902 } // namespace v8
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698