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

Side by Side Diff: src/mips64/codegen-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); 1087 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length());
1088 patcher->masm()->Push(ra, fp, cp, a1); 1088 patcher->masm()->Push(ra, fp, cp, a1);
1089 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); 1089 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP);
1090 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); 1090 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP);
1091 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); 1091 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP);
1092 patcher->masm()->Daddu( 1092 patcher->masm()->Daddu(
1093 fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 1093 fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
1094 } 1094 }
1095 1095
1096 1096
1097 #ifdef DEBUG 1097 #if DCHECK_IS_ON
1098 bool CodeAgingHelper::IsOld(byte* candidate) const { 1098 bool CodeAgingHelper::IsOld(byte* candidate) const {
1099 return Memory::uint32_at(candidate) == kCodeAgePatchFirstInstruction; 1099 return Memory::uint32_at(candidate) == kCodeAgePatchFirstInstruction;
1100 } 1100 }
1101 #endif 1101 #endif
1102 1102
1103 1103
1104 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { 1104 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) {
1105 bool result = isolate->code_aging_helper()->IsYoung(sequence); 1105 bool result = isolate->code_aging_helper()->IsYoung(sequence);
1106 DCHECK(result || isolate->code_aging_helper()->IsOld(sequence)); 1106 DCHECK(result || isolate->code_aging_helper()->IsOld(sequence));
1107 return result; 1107 return result;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 patcher.masm()->nop(); // Pad the empty space. 1147 patcher.masm()->nop(); // Pad the empty space.
1148 } 1148 }
1149 } 1149 }
1150 1150
1151 1151
1152 #undef __ 1152 #undef __
1153 1153
1154 } } // namespace v8::internal 1154 } } // namespace v8::internal
1155 1155
1156 #endif // V8_TARGET_ARCH_MIPS64 1156 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698