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

Side by Side Diff: src/arm64/delayed-masm-arm64-inl.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/delayed-masm-arm64.cc ('k') | src/arm64/deoptimizer-arm64.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 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 #ifndef V8_ARM64_DELAYED_MASM_ARM64_INL_H_ 5 #ifndef V8_ARM64_DELAYED_MASM_ARM64_INL_H_
6 #define V8_ARM64_DELAYED_MASM_ARM64_INL_H_ 6 #define V8_ARM64_DELAYED_MASM_ARM64_INL_H_
7 7
8 #include "src/arm64/delayed-masm-arm64.h" 8 #include "src/arm64/delayed-masm-arm64.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 #define __ ACCESS_MASM(masm_) 13 #define __ ACCESS_MASM(masm_)
14 14
15 15
16 void DelayedMasm::EndDelayedUse() { 16 void DelayedMasm::EndDelayedUse() {
17 EmitPending(); 17 EmitPending();
18 ASSERT(!scratch_register_acquired_); 18 DCHECK(!scratch_register_acquired_);
19 ResetSavedValue(); 19 ResetSavedValue();
20 } 20 }
21 21
22 22
23 void DelayedMasm::Mov(const Register& rd, 23 void DelayedMasm::Mov(const Register& rd,
24 const Operand& operand, 24 const Operand& operand,
25 DiscardMoveMode discard_mode) { 25 DiscardMoveMode discard_mode) {
26 EmitPending(); 26 EmitPending();
27 ASSERT(!IsScratchRegister(rd) || scratch_register_acquired_); 27 DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_);
28 __ Mov(rd, operand, discard_mode); 28 __ Mov(rd, operand, discard_mode);
29 } 29 }
30 30
31 31
32 void DelayedMasm::Fmov(FPRegister fd, FPRegister fn) { 32 void DelayedMasm::Fmov(FPRegister fd, FPRegister fn) {
33 EmitPending(); 33 EmitPending();
34 __ Fmov(fd, fn); 34 __ Fmov(fd, fn);
35 } 35 }
36 36
37 37
38 void DelayedMasm::Fmov(FPRegister fd, double imm) { 38 void DelayedMasm::Fmov(FPRegister fd, double imm) {
39 EmitPending(); 39 EmitPending();
40 __ Fmov(fd, imm); 40 __ Fmov(fd, imm);
41 } 41 }
42 42
43 43
44 void DelayedMasm::LoadObject(Register result, Handle<Object> object) { 44 void DelayedMasm::LoadObject(Register result, Handle<Object> object) {
45 EmitPending(); 45 EmitPending();
46 ASSERT(!IsScratchRegister(result) || scratch_register_acquired_); 46 DCHECK(!IsScratchRegister(result) || scratch_register_acquired_);
47 __ LoadObject(result, object); 47 __ LoadObject(result, object);
48 } 48 }
49 49
50 50
51 #undef __ 51 #undef __
52 52
53 } } // namespace v8::internal 53 } } // namespace v8::internal
54 54
55 #endif // V8_ARM64_DELAYED_MASM_ARM64_INL_H_ 55 #endif // V8_ARM64_DELAYED_MASM_ARM64_INL_H_
OLDNEW
« no previous file with comments | « src/arm64/delayed-masm-arm64.cc ('k') | src/arm64/deoptimizer-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698