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

Side by Side Diff: src/arm64/codegen-arm64.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
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/assembler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/arm64/simulator-arm64.h" 9 #include "src/arm64/simulator-arm64.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 381
382 #ifdef DEBUG 382 #ifdef DEBUG
383 const int length = kCodeAgeStubEntryOffset / kInstructionSize; 383 const int length = kCodeAgeStubEntryOffset / kInstructionSize;
384 DCHECK(old_sequence_.length() >= kCodeAgeStubEntryOffset); 384 DCHECK(old_sequence_.length() >= kCodeAgeStubEntryOffset);
385 PatchingAssembler patcher_old(old_sequence_.start(), length); 385 PatchingAssembler patcher_old(old_sequence_.start(), length);
386 MacroAssembler::EmitCodeAgeSequence(&patcher_old, NULL); 386 MacroAssembler::EmitCodeAgeSequence(&patcher_old, NULL);
387 #endif 387 #endif
388 } 388 }
389 389
390 390
391 #ifdef DEBUG 391 #if DCHECK_IS_ON
392 bool CodeAgingHelper::IsOld(byte* candidate) const { 392 bool CodeAgingHelper::IsOld(byte* candidate) const {
393 return memcmp(candidate, old_sequence_.start(), kCodeAgeStubEntryOffset) == 0; 393 return memcmp(candidate, old_sequence_.start(), kCodeAgeStubEntryOffset) == 0;
394 } 394 }
395 #endif 395 #endif
396 396
397 397
398 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { 398 bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) {
399 return MacroAssembler::IsYoungSequence(isolate, sequence); 399 return MacroAssembler::IsYoungSequence(isolate, sequence);
400 } 400 }
401 401
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 __ Fmul(result, double_temp3, double_temp1); 630 __ Fmul(result, double_temp3, double_temp1);
631 631
632 __ Bind(&done); 632 __ Bind(&done);
633 } 633 }
634 634
635 #undef __ 635 #undef __
636 636
637 } } // namespace v8::internal 637 } } // namespace v8::internal
638 638
639 #endif // V8_TARGET_ARCH_ARM64 639 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698