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

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

Issue 288213002: Refactor MacroAssembler::Prologue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset)); 155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset));
156 156
157 __ sw(a2, MemOperand(sp, receiver_offset)); 157 __ sw(a2, MemOperand(sp, receiver_offset));
158 158
159 __ bind(&ok); 159 __ bind(&ok);
160 } 160 }
161 } 161 }
162 162
163 info()->set_prologue_offset(masm_->pc_offset()); 163 info()->set_prologue_offset(masm_->pc_offset());
164 if (NeedsEagerFrame()) { 164 if (NeedsEagerFrame()) {
165 __ Prologue(info()); 165 if (info()->IsStub()) {
166 __ StubPrologue();
167 } else {
168 __ Prologue(info()->IsCodePreAgingActive());
169 }
166 frame_is_built_ = true; 170 frame_is_built_ = true;
167 info_->AddNoFrameRange(0, masm_->pc_offset()); 171 info_->AddNoFrameRange(0, masm_->pc_offset());
168 } 172 }
169 173
170 // Reserve space for the stack slots needed by the code. 174 // Reserve space for the stack slots needed by the code.
171 int slots = GetStackSlotCount(); 175 int slots = GetStackSlotCount();
172 if (slots > 0) { 176 if (slots > 0) {
173 if (FLAG_debug_code) { 177 if (FLAG_debug_code) {
174 __ Subu(sp, sp, Operand(slots * kPointerSize)); 178 __ Subu(sp, sp, Operand(slots * kPointerSize));
175 __ Push(a0, a1); 179 __ Push(a0, a1);
(...skipping 5743 matching lines...) Expand 10 before | Expand all | Expand 10 after
5919 __ lw(result, FieldMemOperand(scratch, 5923 __ lw(result, FieldMemOperand(scratch,
5920 FixedArray::kHeaderSize - kPointerSize)); 5924 FixedArray::kHeaderSize - kPointerSize));
5921 __ bind(deferred->exit()); 5925 __ bind(deferred->exit());
5922 __ bind(&done); 5926 __ bind(&done);
5923 } 5927 }
5924 5928
5925 5929
5926 #undef __ 5930 #undef __
5927 5931
5928 } } // namespace v8::internal 5932 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698