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

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

Issue 1480573002: Pass Isolate to CodeAgingHelper (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/mips64/codegen-mips64.cc ('k') | src/x64/codegen-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/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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 __ b(&done); 601 __ b(&done);
602 602
603 __ bind(&infinity); 603 __ bind(&infinity);
604 __ lfd(result, ExpConstant(2, temp3)); 604 __ lfd(result, ExpConstant(2, temp3));
605 605
606 __ bind(&done); 606 __ bind(&done);
607 } 607 }
608 608
609 #undef __ 609 #undef __
610 610
611 CodeAgingHelper::CodeAgingHelper() { 611 CodeAgingHelper::CodeAgingHelper(Isolate* isolate) {
612 USE(isolate);
612 DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength); 613 DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength);
613 // Since patcher is a large object, allocate it dynamically when needed, 614 // Since patcher is a large object, allocate it dynamically when needed,
614 // to avoid overloading the stack in stress conditions. 615 // to avoid overloading the stack in stress conditions.
615 // DONT_FLUSH is used because the CodeAgingHelper is initialized early in 616 // DONT_FLUSH is used because the CodeAgingHelper is initialized early in
616 // the process, before ARM simulator ICache is setup. 617 // the process, before ARM simulator ICache is setup.
617 base::SmartPointer<CodePatcher> patcher(new CodePatcher( 618 base::SmartPointer<CodePatcher> patcher(new CodePatcher(
618 young_sequence_.start(), young_sequence_.length() / Assembler::kInstrSize, 619 young_sequence_.start(), young_sequence_.length() / Assembler::kInstrSize,
619 CodePatcher::DONT_FLUSH)); 620 CodePatcher::DONT_FLUSH));
620 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); 621 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length());
621 patcher->masm()->PushFixedFrame(r4); 622 patcher->masm()->PushFixedFrame(r4);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 patcher.masm()->Jump(r3); 676 patcher.masm()->Jump(r3);
676 for (int i = 0; i < kCodeAgingSequenceNops; i++) { 677 for (int i = 0; i < kCodeAgingSequenceNops; i++) {
677 patcher.masm()->nop(); 678 patcher.masm()->nop();
678 } 679 }
679 } 680 }
680 } 681 }
681 } // namespace internal 682 } // namespace internal
682 } // namespace v8 683 } // namespace v8
683 684
684 #endif // V8_TARGET_ARCH_PPC 685 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698