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

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

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 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
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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm64/codegen-arm64.cc » ('j') | src/assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698