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

Side by Side Diff: src/checks.h

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" 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/bootstrapper.cc ('k') | src/checks.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 #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. 10 // Simulator specific helpers.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CHECK(!v8::internal::FLAG_enable_slow_asserts || (condition)) 46 CHECK(!v8::internal::FLAG_enable_slow_asserts || (condition))
47 extern bool FLAG_enable_slow_asserts; 47 extern bool FLAG_enable_slow_asserts;
48 #else 48 #else
49 #define SLOW_ASSERT(condition) ((void) 0) 49 #define SLOW_ASSERT(condition) ((void) 0)
50 const bool FLAG_enable_slow_asserts = false; 50 const bool FLAG_enable_slow_asserts = false;
51 #endif 51 #endif
52 52
53 } } // namespace v8::internal 53 } } // namespace v8::internal
54 54
55 55
56 void CheckNonEqualsHelper(const char* file, 56 void CheckNonEqualsHelper(const char* file, int line,
57 int line, 57 const char* expected_source, double expected,
58 const char* value_source, double value);
59
60 void CheckEqualsHelper(const char* file, int line, const char* expected_source,
61 double expected, const char* value_source, double value);
62
63 void CheckNonEqualsHelper(const char* file, int line,
58 const char* unexpected_source, 64 const char* unexpected_source,
59 v8::Handle<v8::Value> unexpected, 65 v8::Handle<v8::Value> unexpected,
60 const char* value_source, 66 const char* value_source,
61 v8::Handle<v8::Value> value); 67 v8::Handle<v8::Value> value);
62 68
63 void CheckEqualsHelper(const char* file, 69 void CheckEqualsHelper(const char* file,
64 int line, 70 int line,
65 const char* expected_source, 71 const char* expected_source,
66 v8::Handle<v8::Value> expected, 72 v8::Handle<v8::Value> expected,
67 const char* value_source, 73 const char* value_source,
68 v8::Handle<v8::Value> value); 74 v8::Handle<v8::Value> value);
69 75
70 #define ASSERT_TAG_ALIGNED(address) \ 76 #define ASSERT_TAG_ALIGNED(address) \
71 ASSERT((reinterpret_cast<intptr_t>(address) & HeapObjectTagMask()) == 0) 77 ASSERT((reinterpret_cast<intptr_t>(address) & HeapObjectTagMask()) == 0)
72 78
73 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & HeapObjectTagMask()) == 0) 79 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & HeapObjectTagMask()) == 0)
74 80
75 #endif // V8_CHECKS_H_ 81 #endif // V8_CHECKS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/checks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698