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

Side by Side Diff: src/checks.h

Issue 444803003: Move ARM64 macros to macro-assembler-arm64.h. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/macro-assembler-arm64.h ('k') | no next file » | 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 #ifndef V8_CHECKS_H_ 5 #ifndef V8_CHECKS_H_
6 #define V8_CHECKS_H_ 6 #define V8_CHECKS_H_
7 7
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 9
10 // Simulator specific helpers.
11 // We can't use USE_SIMULATOR here because it isn't defined yet.
12 #if V8_TARGET_ARCH_ARM64 && !V8_HOST_ARCH_ARM64
13 // TODO(all): If possible automatically prepend an indicator like
14 // UNIMPLEMENTED or LOCATION.
15 #define ASM_UNIMPLEMENTED(message) \
16 __ Debug(message, __LINE__, NO_PARAM)
17 #define ASM_UNIMPLEMENTED_BREAK(message) \
18 __ Debug(message, __LINE__, \
19 FLAG_ignore_asm_unimplemented_break ? NO_PARAM : BREAK)
20 #define ASM_LOCATION(message) \
21 __ Debug("LOCATION: " message, __LINE__, NO_PARAM)
22 #else
23 #define ASM_UNIMPLEMENTED(message)
24 #define ASM_UNIMPLEMENTED_BREAK(message)
25 #define ASM_LOCATION(message)
26 #endif
27
28
29 #ifdef DEBUG 10 #ifdef DEBUG
30 #ifndef OPTIMIZED_DEBUG 11 #ifndef OPTIMIZED_DEBUG
31 #define ENABLE_SLOW_DCHECKS 1 12 #define ENABLE_SLOW_DCHECKS 1
32 #endif 13 #endif
33 #endif 14 #endif
34 15
35 namespace v8 { 16 namespace v8 {
36 17
37 class Value; 18 class Value;
38 template <class T> class Handle; 19 template <class T> class Handle;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 v8::Handle<v8::Value> expected, 53 v8::Handle<v8::Value> expected,
73 const char* value_source, 54 const char* value_source,
74 v8::Handle<v8::Value> value); 55 v8::Handle<v8::Value> value);
75 56
76 #define DCHECK_TAG_ALIGNED(address) \ 57 #define DCHECK_TAG_ALIGNED(address) \
77 DCHECK((reinterpret_cast<intptr_t>(address) & HeapObjectTagMask()) == 0) 58 DCHECK((reinterpret_cast<intptr_t>(address) & HeapObjectTagMask()) == 0)
78 59
79 #define DCHECK_SIZE_TAG_ALIGNED(size) DCHECK((size & HeapObjectTagMask()) == 0) 60 #define DCHECK_SIZE_TAG_ALIGNED(size) DCHECK((size & HeapObjectTagMask()) == 0)
80 61
81 #endif // V8_CHECKS_H_ 62 #endif // V8_CHECKS_H_
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698