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/arm64/code-generator-arm64.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/arm/code-generator-arm.cc ('k') | src/compiler/ia32/code-generator-ia32.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/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 } 1339 }
1340 1340
1341 1341
1342 void CodeGenerator::AssemblePrologue() { 1342 void CodeGenerator::AssemblePrologue() {
1343 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1343 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1344 if (descriptor->IsCFunctionCall()) { 1344 if (descriptor->IsCFunctionCall()) {
1345 __ SetStackPointer(csp); 1345 __ SetStackPointer(csp);
1346 __ Push(lr, fp); 1346 __ Push(lr, fp);
1347 __ Mov(fp, csp); 1347 __ Mov(fp, csp);
1348 } else if (descriptor->IsJSFunctionCall()) { 1348 } else if (descriptor->IsJSFunctionCall()) {
1349 CompilationInfo* info = this->info();
1350 __ SetStackPointer(jssp); 1349 __ SetStackPointer(jssp);
1351 __ Prologue(info->IsCodePreAgingActive()); 1350 __ Prologue(this->info()->GeneratePreagedPrologue());
1352 } else if (frame()->needs_frame()) { 1351 } else if (frame()->needs_frame()) {
1353 if (descriptor->UseNativeStack()) { 1352 if (descriptor->UseNativeStack()) {
1354 __ SetStackPointer(csp); 1353 __ SetStackPointer(csp);
1355 } else { 1354 } else {
1356 __ SetStackPointer(jssp); 1355 __ SetStackPointer(jssp);
1357 } 1356 }
1358 __ StubPrologue(); 1357 __ StubPrologue();
1359 } else { 1358 } else {
1360 if (descriptor->UseNativeStack()) { 1359 if (descriptor->UseNativeStack()) {
1361 __ SetStackPointer(csp); 1360 __ SetStackPointer(csp);
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 padding_size -= kInstructionSize; 1640 padding_size -= kInstructionSize;
1642 } 1641 }
1643 } 1642 }
1644 } 1643 }
1645 1644
1646 #undef __ 1645 #undef __
1647 1646
1648 } // namespace compiler 1647 } // namespace compiler
1649 } // namespace internal 1648 } // namespace internal
1650 } // namespace v8 1649 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698