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

Side by Side Diff: src/objects/literal-objects.h

Issue 2961253002: [objects] Rename macros from DECLARE_ to DECL_ for consistency. (Closed)
Patch Set: Created 3 years, 5 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/hash-table.h ('k') | src/objects/map.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 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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_OBJECTS_LITERAL_OBJECTS_H_ 5 #ifndef V8_OBJECTS_LITERAL_OBJECTS_H_
6 #define V8_OBJECTS_LITERAL_OBJECTS_H_ 6 #define V8_OBJECTS_LITERAL_OBJECTS_H_
7 7
8 #include "src/objects.h" 8 #include "src/objects.h"
9 9
10 // Has to be the last include (doesn't have include guards): 10 // Has to be the last include (doesn't have include guards):
(...skipping 13 matching lines...) Expand all
24 Object* value(int index) const; 24 Object* value(int index) const;
25 25
26 // The number of boilerplate properties. 26 // The number of boilerplate properties.
27 int size() const; 27 int size() const;
28 28
29 // Number of boilerplate properties and properties with computed names. 29 // Number of boilerplate properties and properties with computed names.
30 int backing_store_size() const; 30 int backing_store_size() const;
31 31
32 void set_backing_store_size(Isolate* isolate, int backing_store_size); 32 void set_backing_store_size(Isolate* isolate, int backing_store_size);
33 33
34 DECLARE_CAST(BoilerplateDescription) 34 DECL_CAST(BoilerplateDescription)
35 35
36 private: 36 private:
37 bool has_number_of_properties() const; 37 bool has_number_of_properties() const;
38 }; 38 };
39 39
40 // Pair of {ElementsKind} and an array of constant values for {ArrayLiteral} 40 // Pair of {ElementsKind} and an array of constant values for {ArrayLiteral}
41 // expressions. Used to communicate with the runtime for literal boilerplate 41 // expressions. Used to communicate with the runtime for literal boilerplate
42 // creation within the {Runtime_CreateArrayLiteral} method. 42 // creation within the {Runtime_CreateArrayLiteral} method.
43 class ConstantElementsPair : public Tuple2 { 43 class ConstantElementsPair : public Tuple2 {
44 public: 44 public:
45 DECL_INT_ACCESSORS(elements_kind) 45 DECL_INT_ACCESSORS(elements_kind)
46 DECL_ACCESSORS(constant_values, FixedArrayBase) 46 DECL_ACCESSORS(constant_values, FixedArrayBase)
47 47
48 DECLARE_CAST(ConstantElementsPair) 48 DECL_CAST(ConstantElementsPair)
49 49
50 static const int kElementsKindOffset = kValue1Offset; 50 static const int kElementsKindOffset = kValue1Offset;
51 static const int kConstantValuesOffset = kValue2Offset; 51 static const int kConstantValuesOffset = kValue2Offset;
52 52
53 private: 53 private:
54 DISALLOW_IMPLICIT_CONSTRUCTORS(ConstantElementsPair); 54 DISALLOW_IMPLICIT_CONSTRUCTORS(ConstantElementsPair);
55 }; 55 };
56 56
57 } // namespace internal 57 } // namespace internal
58 } // namespace v8 58 } // namespace v8
59 59
60 #include "src/objects/object-macros-undef.h" 60 #include "src/objects/object-macros-undef.h"
61 61
62 #endif // V8_OBJECTS_LITERAL_OBJECTS_H_ 62 #endif // V8_OBJECTS_LITERAL_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/objects/hash-table.h ('k') | src/objects/map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698