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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.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/mips64/code-generator-mips64.cc ('k') | src/compiler/x64/code-generator-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 __ mflr(r0); 1536 __ mflr(r0);
1537 if (FLAG_enable_embedded_constant_pool) { 1537 if (FLAG_enable_embedded_constant_pool) {
1538 __ Push(r0, fp, kConstantPoolRegister); 1538 __ Push(r0, fp, kConstantPoolRegister);
1539 // Adjust FP to point to saved FP. 1539 // Adjust FP to point to saved FP.
1540 __ subi(fp, sp, Operand(StandardFrameConstants::kConstantPoolOffset)); 1540 __ subi(fp, sp, Operand(StandardFrameConstants::kConstantPoolOffset));
1541 } else { 1541 } else {
1542 __ Push(r0, fp); 1542 __ Push(r0, fp);
1543 __ mr(fp, sp); 1543 __ mr(fp, sp);
1544 } 1544 }
1545 } else if (descriptor->IsJSFunctionCall()) { 1545 } else if (descriptor->IsJSFunctionCall()) {
1546 CompilationInfo* info = this->info(); 1546 __ Prologue(this->info()->GeneratePreagedPrologue());
1547 __ Prologue(info->IsCodePreAgingActive());
1548 } else if (frame()->needs_frame()) { 1547 } else if (frame()->needs_frame()) {
1549 __ StubPrologue(); 1548 __ StubPrologue();
1550 } else { 1549 } else {
1551 frame()->SetElidedFrameSizeInSlots(0); 1550 frame()->SetElidedFrameSizeInSlots(0);
1552 } 1551 }
1553 frame_access_state()->SetFrameAccessToDefault(); 1552 frame_access_state()->SetFrameAccessToDefault();
1554 1553
1555 int stack_shrink_slots = frame()->GetSpillSlotCount(); 1554 int stack_shrink_slots = frame()->GetSpillSlotCount();
1556 if (info()->is_osr()) { 1555 if (info()->is_osr()) {
1557 // TurboFan OSR-compiled functions cannot be entered directly. 1556 // TurboFan OSR-compiled functions cannot be entered directly.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1841 padding_size -= v8::internal::Assembler::kInstrSize; 1840 padding_size -= v8::internal::Assembler::kInstrSize;
1842 } 1841 }
1843 } 1842 }
1844 } 1843 }
1845 1844
1846 #undef __ 1845 #undef __
1847 1846
1848 } // namespace compiler 1847 } // namespace compiler
1849 } // namespace internal 1848 } // namespace internal
1850 } // namespace v8 1849 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698