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

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: 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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 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() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME);
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 5306 matching lines...) Expand 10 before | Expand all | Expand 10 after
5470 FixedArray::kHeaderSize - kPointerSize)); 5463 FixedArray::kHeaderSize - kPointerSize));
5471 __ bind(&done); 5464 __ bind(&done);
5472 } 5465 }
5473 5466
5474 5467
5475 #undef __ 5468 #undef __
5476 5469
5477 } } // namespace v8::internal 5470 } } // namespace v8::internal
5478 5471
5479 #endif // V8_TARGET_ARCH_X64 5472 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698