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

Side by Side Diff: src/objects/object-macros.h

Issue 2638893002: objects.h splitting: Move ModuleInfoEntry (Closed)
Patch Set: dropping unnecessary undefs Created 3 years, 11 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
« no previous file with comments | « src/objects/module-info.h ('k') | src/objects/object-macros-undef.h » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 // Note 1: Any file that includes this one should include object-macros-undef.h 5 // Note 1: Any file that includes this one should include object-macros-undef.h
6 // at the bottom. 6 // at the bottom.
7 7
8 // Note 2: This file is deliberately missing the include guards (the undeffing 8 // Note 2: This file is deliberately missing the include guards (the undeffing
9 // approach wouldn't work otherwise). 9 // approach wouldn't work otherwise).
10 10
11 #define DECL_BOOLEAN_ACCESSORS(name) \ 11 #define DECL_BOOLEAN_ACCESSORS(name) \
12 inline bool name() const; \ 12 inline bool name() const; \
13 inline void set_##name(bool value); 13 inline void set_##name(bool value);
14 14
15 #define DECL_INT_ACCESSORS(name) \ 15 #define DECL_INT_ACCESSORS(name) \
16 inline int name() const; \ 16 inline int name() const; \
17 inline void set_##name(int value); 17 inline void set_##name(int value);
18 18
19 #define DECL_ACCESSORS(name, type) \ 19 #define DECL_ACCESSORS(name, type) \
20 inline type* name() const; \ 20 inline type* name() const; \
21 inline void set_##name(type* value, \ 21 inline void set_##name(type* value, \
22 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); 22 WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
23 23
24 #define DECLARE_CAST(type) \ 24 #define DECLARE_CAST(type) \
25 INLINE(static type* cast(Object* object)); \ 25 INLINE(static type* cast(Object* object)); \
26 INLINE(static const type* cast(const Object* object)); 26 INLINE(static const type* cast(const Object* object));
27
28 #ifdef VERIFY_HEAP
29 #define DECLARE_VERIFIER(Name) void Name##Verify();
30 #else
31 #define DECLARE_VERIFIER(Name)
32 #endif
OLDNEW
« no previous file with comments | « src/objects/module-info.h ('k') | src/objects/object-macros-undef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698