| OLD | NEW |
| 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 young_sequence_.length() / Assembler::kInstrSize, | 893 young_sequence_.length() / Assembler::kInstrSize, |
| 894 CodePatcher::DONT_FLUSH)); | 894 CodePatcher::DONT_FLUSH)); |
| 895 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); | 895 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); |
| 896 patcher->masm()->PushFixedFrame(r1); | 896 patcher->masm()->PushFixedFrame(r1); |
| 897 patcher->masm()->nop(ip.code()); | 897 patcher->masm()->nop(ip.code()); |
| 898 patcher->masm()->add( | 898 patcher->masm()->add( |
| 899 fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 899 fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 900 } | 900 } |
| 901 | 901 |
| 902 | 902 |
| 903 #ifdef DEBUG | 903 #if DCHECK_IS_ON |
| 904 bool CodeAgingHelper::IsOld(byte* candidate) const { | 904 bool CodeAgingHelper::IsOld(byte* candidate) const { |
| 905 return Memory::uint32_at(candidate) == kCodeAgePatchFirstInstruction; | 905 return Memory::uint32_at(candidate) == kCodeAgePatchFirstInstruction; |
| 906 } | 906 } |
| 907 #endif | 907 #endif |
| 908 | 908 |
| 909 | 909 |
| 910 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { | 910 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { |
| 911 bool result = isolate->code_aging_helper()->IsYoung(sequence); | 911 bool result = isolate->code_aging_helper()->IsYoung(sequence); |
| 912 DCHECK(result || isolate->code_aging_helper()->IsOld(sequence)); | 912 DCHECK(result || isolate->code_aging_helper()->IsOld(sequence)); |
| 913 return result; | 913 return result; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 942 patcher.masm()->add(r0, pc, Operand(-8)); | 942 patcher.masm()->add(r0, pc, Operand(-8)); |
| 943 patcher.masm()->ldr(pc, MemOperand(pc, -4)); | 943 patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
| 944 patcher.masm()->emit_code_stub_address(stub); | 944 patcher.masm()->emit_code_stub_address(stub); |
| 945 } | 945 } |
| 946 } | 946 } |
| 947 | 947 |
| 948 | 948 |
| 949 } } // namespace v8::internal | 949 } } // namespace v8::internal |
| 950 | 950 |
| 951 #endif // V8_TARGET_ARCH_ARM | 951 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |