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

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: 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
57 int line, 57 int line,
58 const char* expected_source,
59 double expected,
60 const char* value_source,
61 double value);
62
63 void CheckEqualsHelper(const char* file,
64 int line,
65 const char* expected_source,
66 double expected,
67 const char* value_source,
68 double value);
69
70 void CheckNonEqualsHelper(const char* file,
71 int line,
58 const char* unexpected_source, 72 const char* unexpected_source,
59 v8::Handle<v8::Value> unexpected, 73 v8::Handle<v8::Value> unexpected,
60 const char* value_source, 74 const char* value_source,
61 v8::Handle<v8::Value> value); 75 v8::Handle<v8::Value> value);
62 76
63 void CheckEqualsHelper(const char* file, 77 void CheckEqualsHelper(const char* file,
64 int line, 78 int line,
65 const char* expected_source, 79 const char* expected_source,
66 v8::Handle<v8::Value> expected, 80 v8::Handle<v8::Value> expected,
67 const char* value_source, 81 const char* value_source,
68 v8::Handle<v8::Value> value); 82 v8::Handle<v8::Value> value);
69 83
70 #define ASSERT_TAG_ALIGNED(address) \ 84 #define ASSERT_TAG_ALIGNED(address) \
71 ASSERT((reinterpret_cast<intptr_t>(address) & HeapObjectTagMask()) == 0) 85 ASSERT((reinterpret_cast<intptr_t>(address) & HeapObjectTagMask()) == 0)
72 86
73 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & HeapObjectTagMask()) == 0) 87 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & HeapObjectTagMask()) == 0)
74 88
75 #endif // V8_CHECKS_H_ 89 #endif // V8_CHECKS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/checks.cc » ('j') | src/lithium-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698