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

Side by Side Diff: src/x64/macro-assembler-x64.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/x64/macro-assembler-x64.h ('k') | src/x87/codegen-x87.cc » ('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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 5036 matching lines...) Expand 10 before | Expand all | Expand 10 after
5047 5047
5048 call(function); 5048 call(function);
5049 DCHECK(base::OS::ActivationFrameAlignment() != 0); 5049 DCHECK(base::OS::ActivationFrameAlignment() != 0);
5050 DCHECK(num_arguments >= 0); 5050 DCHECK(num_arguments >= 0);
5051 int argument_slots_on_stack = 5051 int argument_slots_on_stack =
5052 ArgumentStackSlotsForCFunctionCall(num_arguments); 5052 ArgumentStackSlotsForCFunctionCall(num_arguments);
5053 movp(rsp, Operand(rsp, argument_slots_on_stack * kRegisterSize)); 5053 movp(rsp, Operand(rsp, argument_slots_on_stack * kRegisterSize));
5054 } 5054 }
5055 5055
5056 5056
5057 #ifdef DEBUG 5057 #if DCHECK_IS_ON
5058 bool AreAliased(Register reg1, 5058 bool AreAliased(Register reg1,
5059 Register reg2, 5059 Register reg2,
5060 Register reg3, 5060 Register reg3,
5061 Register reg4, 5061 Register reg4,
5062 Register reg5, 5062 Register reg5,
5063 Register reg6, 5063 Register reg6,
5064 Register reg7, 5064 Register reg7,
5065 Register reg8) { 5065 Register reg8) {
5066 int n_of_valid_regs = reg1.is_valid() + reg2.is_valid() + 5066 int n_of_valid_regs = reg1.is_valid() + reg2.is_valid() +
5067 reg3.is_valid() + reg4.is_valid() + reg5.is_valid() + reg6.is_valid() + 5067 reg3.is_valid() + reg4.is_valid() + reg5.is_valid() + reg6.is_valid() +
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
5409 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); 5409 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift));
5410 movl(rax, dividend); 5410 movl(rax, dividend);
5411 shrl(rax, Immediate(31)); 5411 shrl(rax, Immediate(31));
5412 addl(rdx, rax); 5412 addl(rdx, rax);
5413 } 5413 }
5414 5414
5415 5415
5416 } } // namespace v8::internal 5416 } } // namespace v8::internal
5417 5417
5418 #endif // V8_TARGET_ARCH_X64 5418 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x87/codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698