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

Side by Side Diff: src/compiler/mips64/code-generator-mips64.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/mips/code-generator-mips.cc ('k') | src/compiler/ppc/code-generator-ppc.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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 1679 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
1680 } 1680 }
1681 1681
1682 1682
1683 void CodeGenerator::AssemblePrologue() { 1683 void CodeGenerator::AssemblePrologue() {
1684 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1684 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1685 if (descriptor->IsCFunctionCall()) { 1685 if (descriptor->IsCFunctionCall()) {
1686 __ Push(ra, fp); 1686 __ Push(ra, fp);
1687 __ mov(fp, sp); 1687 __ mov(fp, sp);
1688 } else if (descriptor->IsJSFunctionCall()) { 1688 } else if (descriptor->IsJSFunctionCall()) {
1689 CompilationInfo* info = this->info(); 1689 __ Prologue(this->info()->GeneratePreagedPrologue());
1690 __ Prologue(info->IsCodePreAgingActive());
1691 } else if (frame()->needs_frame()) { 1690 } else if (frame()->needs_frame()) {
1692 __ StubPrologue(); 1691 __ StubPrologue();
1693 } else { 1692 } else {
1694 frame()->SetElidedFrameSizeInSlots(0); 1693 frame()->SetElidedFrameSizeInSlots(0);
1695 } 1694 }
1696 frame_access_state()->SetFrameAccessToDefault(); 1695 frame_access_state()->SetFrameAccessToDefault();
1697 1696
1698 int stack_shrink_slots = frame()->GetSpillSlotCount(); 1697 int stack_shrink_slots = frame()->GetSpillSlotCount();
1699 if (info()->is_osr()) { 1698 if (info()->is_osr()) {
1700 // TurboFan OSR-compiled functions cannot be entered directly. 1699 // TurboFan OSR-compiled functions cannot be entered directly.
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1982 padding_size -= v8::internal::Assembler::kInstrSize; 1981 padding_size -= v8::internal::Assembler::kInstrSize;
1983 } 1982 }
1984 } 1983 }
1985 } 1984 }
1986 1985
1987 #undef __ 1986 #undef __
1988 1987
1989 } // namespace compiler 1988 } // namespace compiler
1990 } // namespace internal 1989 } // namespace internal
1991 } // namespace v8 1990 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698