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

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

Issue 1221433021: Move SmartPointer to base. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove some unecessary header includes Created 5 years, 5 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
« BUILD.gn ('K') | « BUILD.gn ('k') | src/ast.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/arm/simulator-arm.h" 9 #include "src/arm/simulator-arm.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 // add(r0, pc, Operand(-8)) 881 // add(r0, pc, Operand(-8))
882 static const uint32_t kCodeAgePatchFirstInstruction = 0xe24f0008; 882 static const uint32_t kCodeAgePatchFirstInstruction = 0xe24f0008;
883 #endif 883 #endif
884 884
885 CodeAgingHelper::CodeAgingHelper() { 885 CodeAgingHelper::CodeAgingHelper() {
886 DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength); 886 DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength);
887 // Since patcher is a large object, allocate it dynamically when needed, 887 // Since patcher is a large object, allocate it dynamically when needed,
888 // to avoid overloading the stack in stress conditions. 888 // to avoid overloading the stack in stress conditions.
889 // DONT_FLUSH is used because the CodeAgingHelper is initialized early in 889 // DONT_FLUSH is used because the CodeAgingHelper is initialized early in
890 // the process, before ARM simulator ICache is setup. 890 // the process, before ARM simulator ICache is setup.
891 SmartPointer<CodePatcher> patcher( 891 base::SmartPointer<CodePatcher> patcher(new CodePatcher(
892 new CodePatcher(young_sequence_.start(), 892 young_sequence_.start(), young_sequence_.length() / Assembler::kInstrSize,
893 young_sequence_.length() / Assembler::kInstrSize, 893 CodePatcher::DONT_FLUSH));
894 CodePatcher::DONT_FLUSH));
895 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); 894 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length());
896 patcher->masm()->PushFixedFrame(r1); 895 patcher->masm()->PushFixedFrame(r1);
897 patcher->masm()->nop(ip.code()); 896 patcher->masm()->nop(ip.code());
898 patcher->masm()->add( 897 patcher->masm()->add(
899 fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 898 fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
900 } 899 }
901 900
902 901
903 #ifdef DEBUG 902 #ifdef DEBUG
904 bool CodeAgingHelper::IsOld(byte* candidate) const { 903 bool CodeAgingHelper::IsOld(byte* candidate) const {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 942 patcher.masm()->ldr(pc, MemOperand(pc, -4));
944 patcher.masm()->emit_code_stub_address(stub); 943 patcher.masm()->emit_code_stub_address(stub);
945 } 944 }
946 } 945 }
947 946
948 947
949 } // namespace internal 948 } // namespace internal
950 } // namespace v8 949 } // namespace v8
951 950
952 #endif // V8_TARGET_ARCH_ARM 951 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« BUILD.gn ('K') | « BUILD.gn ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698