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

Side by Side Diff: src/compiler/x64/code-generator-x64.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/ppc/code-generator-ppc.cc ('k') | src/compiler/x87/code-generator-x87.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 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 1802
1803 } // namespace 1803 } // namespace
1804 1804
1805 1805
1806 void CodeGenerator::AssemblePrologue() { 1806 void CodeGenerator::AssemblePrologue() {
1807 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1807 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1808 if (descriptor->IsCFunctionCall()) { 1808 if (descriptor->IsCFunctionCall()) {
1809 __ pushq(rbp); 1809 __ pushq(rbp);
1810 __ movq(rbp, rsp); 1810 __ movq(rbp, rsp);
1811 } else if (descriptor->IsJSFunctionCall()) { 1811 } else if (descriptor->IsJSFunctionCall()) {
1812 CompilationInfo* info = this->info(); 1812 __ Prologue(this->info()->GeneratePreagedPrologue());
1813 __ Prologue(info->IsCodePreAgingActive());
1814 } else if (frame()->needs_frame()) { 1813 } else if (frame()->needs_frame()) {
1815 __ StubPrologue(); 1814 __ StubPrologue();
1816 } else { 1815 } else {
1817 frame()->SetElidedFrameSizeInSlots(kPCOnStackSize / kPointerSize); 1816 frame()->SetElidedFrameSizeInSlots(kPCOnStackSize / kPointerSize);
1818 } 1817 }
1819 frame_access_state()->SetFrameAccessToDefault(); 1818 frame_access_state()->SetFrameAccessToDefault();
1820 1819
1821 int stack_shrink_slots = frame()->GetSpillSlotCount(); 1820 int stack_shrink_slots = frame()->GetSpillSlotCount();
1822 if (info()->is_osr()) { 1821 if (info()->is_osr()) {
1823 // TurboFan OSR-compiled functions cannot be entered directly. 1822 // TurboFan OSR-compiled functions cannot be entered directly.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2107 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2109 __ Nop(padding_size); 2108 __ Nop(padding_size);
2110 } 2109 }
2111 } 2110 }
2112 2111
2113 #undef __ 2112 #undef __
2114 2113
2115 } // namespace compiler 2114 } // namespace compiler
2116 } // namespace internal 2115 } // namespace internal
2117 } // namespace v8 2116 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/x87/code-generator-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698