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

Side by Side Diff: src/ppc/codegen-ppc.cc

Issue 1778713002: PPC: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/ppc/code-stubs-ppc.cc ('k') | src/ppc/deoptimizer-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/ppc/codegen-ppc.h" 5 #include "src/ppc/codegen-ppc.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength); 609 DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength);
610 // Since patcher is a large object, allocate it dynamically when needed, 610 // Since patcher is a large object, allocate it dynamically when needed,
611 // to avoid overloading the stack in stress conditions. 611 // to avoid overloading the stack in stress conditions.
612 // DONT_FLUSH is used because the CodeAgingHelper is initialized early in 612 // DONT_FLUSH is used because the CodeAgingHelper is initialized early in
613 // the process, before ARM simulator ICache is setup. 613 // the process, before ARM simulator ICache is setup.
614 base::SmartPointer<CodePatcher> patcher( 614 base::SmartPointer<CodePatcher> patcher(
615 new CodePatcher(isolate, young_sequence_.start(), 615 new CodePatcher(isolate, young_sequence_.start(),
616 young_sequence_.length() / Assembler::kInstrSize, 616 young_sequence_.length() / Assembler::kInstrSize,
617 CodePatcher::DONT_FLUSH)); 617 CodePatcher::DONT_FLUSH));
618 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); 618 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length());
619 patcher->masm()->PushFixedFrame(r4); 619 patcher->masm()->PushStandardFrame(r4);
620 patcher->masm()->addi(fp, sp,
621 Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
622 for (int i = 0; i < kNoCodeAgeSequenceNops; i++) { 620 for (int i = 0; i < kNoCodeAgeSequenceNops; i++) {
623 patcher->masm()->nop(); 621 patcher->masm()->nop();
624 } 622 }
625 } 623 }
626 624
627 625
628 #ifdef DEBUG 626 #ifdef DEBUG
629 bool CodeAgingHelper::IsOld(byte* candidate) const { 627 bool CodeAgingHelper::IsOld(byte* candidate) const {
630 return Assembler::IsNop(Assembler::instr_at(candidate)); 628 return Assembler::IsNop(Assembler::instr_at(candidate));
631 } 629 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 patcher.masm()->Jump(r3); 672 patcher.masm()->Jump(r3);
675 for (int i = 0; i < kCodeAgingSequenceNops; i++) { 673 for (int i = 0; i < kCodeAgingSequenceNops; i++) {
676 patcher.masm()->nop(); 674 patcher.masm()->nop();
677 } 675 }
678 } 676 }
679 } 677 }
680 } // namespace internal 678 } // namespace internal
681 } // namespace v8 679 } // namespace v8
682 680
683 #endif // V8_TARGET_ARCH_PPC 681 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/ppc/deoptimizer-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698