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

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

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Fix a couple of typos Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); 136 __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex);
137 __ movq(args.GetReceiverOperand(), kScratchRegister); 137 __ movq(args.GetReceiverOperand(), kScratchRegister);
138 __ bind(&ok); 138 __ bind(&ok);
139 } 139 }
140 } 140 }
141 141
142 info()->set_prologue_offset(masm_->pc_offset()); 142 info()->set_prologue_offset(masm_->pc_offset());
143 if (NeedsEagerFrame()) { 143 if (NeedsEagerFrame()) {
144 ASSERT(!frame_is_built_); 144 ASSERT(!frame_is_built_);
145 frame_is_built_ = true; 145 frame_is_built_ = true;
146 __ push(rbp); // Caller's frame pointer. 146 __ Prologue(info()->IsStub());
147 __ movq(rbp, rsp);
148 __ push(rsi); // Callee's context.
149 if (info()->IsStub()) {
150 __ Push(Smi::FromInt(StackFrame::STUB));
151 } else {
152 __ push(rdi); // Callee's JS function.
153 }
154 info()->AddNoFrameRange(0, masm_->pc_offset()); 147 info()->AddNoFrameRange(0, masm_->pc_offset());
155 } 148 }
156 149
157 // Reserve space for the stack slots needed by the code. 150 // Reserve space for the stack slots needed by the code.
158 int slots = GetStackSlotCount(); 151 int slots = GetStackSlotCount();
159 if (slots > 0) { 152 if (slots > 0) {
160 if (FLAG_debug_code) { 153 if (FLAG_debug_code) {
161 __ subq(rsp, Immediate(slots * kPointerSize)); 154 __ subq(rsp, Immediate(slots * kPointerSize));
162 #ifdef _MSC_VER 155 #ifdef _MSC_VER
163 MakeSureStackPagesMapped(slots * kPointerSize); 156 MakeSureStackPagesMapped(slots * kPointerSize);
(...skipping 5288 matching lines...) Expand 10 before | Expand all | Expand 10 after
5452 FixedArray::kHeaderSize - kPointerSize)); 5445 FixedArray::kHeaderSize - kPointerSize));
5453 __ bind(&done); 5446 __ bind(&done);
5454 } 5447 }
5455 5448
5456 5449
5457 #undef __ 5450 #undef __
5458 5451
5459 } } // namespace v8::internal 5452 } } // namespace v8::internal
5460 5453
5461 #endif // V8_TARGET_ARCH_X64 5454 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698