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

Side by Side Diff: src/compiler/x87/code-generator-x87.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
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 1674
1675 void CodeGenerator::AssemblePrologue() { 1675 void CodeGenerator::AssemblePrologue() {
1676 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1676 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1677 if (descriptor->IsCFunctionCall()) { 1677 if (descriptor->IsCFunctionCall()) {
1678 // Assemble a prologue similar the to cdecl calling convention. 1678 // Assemble a prologue similar the to cdecl calling convention.
1679 __ push(ebp); 1679 __ push(ebp);
1680 __ mov(ebp, esp); 1680 __ mov(ebp, esp);
1681 } else if (descriptor->IsJSFunctionCall()) { 1681 } else if (descriptor->IsJSFunctionCall()) {
1682 // TODO(turbofan): this prologue is redundant with OSR, but needed for 1682 // TODO(turbofan): this prologue is redundant with OSR, but needed for
1683 // code aging. 1683 // code aging.
1684 CompilationInfo* info = this->info(); 1684 __ Prologue(this->info()->GeneratePreagedPrologue());
1685 __ Prologue(info->IsCodePreAgingActive());
1686 } else if (frame()->needs_frame()) { 1685 } else if (frame()->needs_frame()) {
1687 __ StubPrologue(); 1686 __ StubPrologue();
1688 } else { 1687 } else {
1689 frame()->SetElidedFrameSizeInSlots(kPCOnStackSize / kPointerSize); 1688 frame()->SetElidedFrameSizeInSlots(kPCOnStackSize / kPointerSize);
1690 } 1689 }
1691 frame_access_state()->SetFrameAccessToDefault(); 1690 frame_access_state()->SetFrameAccessToDefault();
1692 1691
1693 int stack_shrink_slots = frame()->GetSpillSlotCount(); 1692 int stack_shrink_slots = frame()->GetSpillSlotCount();
1694 if (info()->is_osr()) { 1693 if (info()->is_osr()) {
1695 // TurboFan OSR-compiled functions cannot be entered directly. 1694 // TurboFan OSR-compiled functions cannot be entered directly.
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1997 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1999 __ Nop(padding_size); 1998 __ Nop(padding_size);
2000 } 1999 }
2001 } 2000 }
2002 2001
2003 #undef __ 2002 #undef __
2004 2003
2005 } // namespace compiler 2004 } // namespace compiler
2006 } // namespace internal 2005 } // namespace internal
2007 } // namespace v8 2006 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698