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

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

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: bool -> enum Created 7 years, 1 month 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/builtins-mips.cc ('k') | src/mips/lithium-codegen-mips.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. 1 // Copyright 2012 the V8 project authors. All rights reserved.
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 __ sw(a2, MemOperand(sp, receiver_offset)); 164 __ sw(a2, MemOperand(sp, receiver_offset));
165 __ bind(&ok); 165 __ bind(&ok);
166 } 166 }
167 167
168 // Open a frame scope to indicate that there is a frame on the stack. The 168 // Open a frame scope to indicate that there is a frame on the stack. The
169 // MANUAL indicates that the scope shouldn't actually generate code to set up 169 // MANUAL indicates that the scope shouldn't actually generate code to set up
170 // the frame (that is done below). 170 // the frame (that is done below).
171 FrameScope frame_scope(masm_, StackFrame::MANUAL); 171 FrameScope frame_scope(masm_, StackFrame::MANUAL);
172 172
173 info->set_prologue_offset(masm_->pc_offset()); 173 info->set_prologue_offset(masm_->pc_offset());
174 // The following three instructions must remain together and unmodified for 174 __ Prologue(BUILD_FUNCTION_FRAME);
175 // code aging to work properly.
176 __ Push(ra, fp, cp, a1);
177 __ nop(Assembler::CODE_AGE_SEQUENCE_NOP);
178 // Adjust fp to point to caller's fp.
179 __ Addu(fp, sp, Operand(2 * kPointerSize));
180 info->AddNoFrameRange(0, masm_->pc_offset()); 175 info->AddNoFrameRange(0, masm_->pc_offset());
181 176
182 { Comment cmnt(masm_, "[ Allocate locals"); 177 { Comment cmnt(masm_, "[ Allocate locals");
183 int locals_count = info->scope()->num_stack_slots(); 178 int locals_count = info->scope()->num_stack_slots();
184 // Generators allocate locals, if any, in context slots. 179 // Generators allocate locals, if any, in context slots.
185 ASSERT(!info->function()->is_generator() || locals_count == 0); 180 ASSERT(!info->function()->is_generator() || locals_count == 0);
186 if (locals_count > 0) { 181 if (locals_count > 0) {
187 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 182 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
188 for (int i = 0; i < locals_count; i++) { 183 for (int i = 0; i < locals_count; i++) {
189 __ push(at); 184 __ push(at);
(...skipping 4808 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 Assembler::target_address_at(pc_immediate_load_address)) == 4993 Assembler::target_address_at(pc_immediate_load_address)) ==
4999 reinterpret_cast<uint32_t>( 4994 reinterpret_cast<uint32_t>(
5000 isolate->builtins()->OsrAfterStackCheck()->entry())); 4995 isolate->builtins()->OsrAfterStackCheck()->entry()));
5001 return OSR_AFTER_STACK_CHECK; 4996 return OSR_AFTER_STACK_CHECK;
5002 } 4997 }
5003 4998
5004 4999
5005 } } // namespace v8::internal 5000 } } // namespace v8::internal
5006 5001
5007 #endif // V8_TARGET_ARCH_MIPS 5002 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698