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

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

Issue 1577193003: Change the CompilationInfo::IsCodePreAgingActive() predicate to CompilationInfo::GeneratePreagingPr… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment cleanup. Created 4 years, 11 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
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // cp: Callee's context. 138 // cp: Callee's context.
139 // fp: Caller's frame pointer. 139 // fp: Caller's frame pointer.
140 // lr: Caller's pc. 140 // lr: Caller's pc.
141 } 141 }
142 142
143 info()->set_prologue_offset(masm_->pc_offset()); 143 info()->set_prologue_offset(masm_->pc_offset());
144 if (NeedsEagerFrame()) { 144 if (NeedsEagerFrame()) {
145 if (info()->IsStub()) { 145 if (info()->IsStub()) {
146 __ StubPrologue(); 146 __ StubPrologue();
147 } else { 147 } else {
148 __ Prologue(info()->IsCodePreAgingActive()); 148 __ Prologue(info()->GeneratePreagedPrologue());
149 } 149 }
150 frame_is_built_ = true; 150 frame_is_built_ = true;
151 } 151 }
152 152
153 // Reserve space for the stack slots needed by the code. 153 // Reserve space for the stack slots needed by the code.
154 int slots = GetStackSlotCount(); 154 int slots = GetStackSlotCount();
155 if (slots > 0) { 155 if (slots > 0) {
156 if (FLAG_debug_code) { 156 if (FLAG_debug_code) {
157 __ Subu(sp, sp, Operand(slots * kPointerSize)); 157 __ Subu(sp, sp, Operand(slots * kPointerSize));
158 __ Push(a0, a1); 158 __ Push(a0, a1);
(...skipping 5469 matching lines...) Expand 10 before | Expand all | Expand 10 after
5628 __ Push(at, ToRegister(instr->function())); 5628 __ Push(at, ToRegister(instr->function()));
5629 CallRuntime(Runtime::kPushBlockContext, instr); 5629 CallRuntime(Runtime::kPushBlockContext, instr);
5630 RecordSafepoint(Safepoint::kNoLazyDeopt); 5630 RecordSafepoint(Safepoint::kNoLazyDeopt);
5631 } 5631 }
5632 5632
5633 5633
5634 #undef __ 5634 #undef __
5635 5635
5636 } // namespace internal 5636 } // namespace internal
5637 } // namespace v8 5637 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698