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

Side by Side Diff: src/accessors.h

Issue 2159223004: Revert of Move Error methods to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « BUILD.gn ('k') | src/accessors.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_ACCESSORS_H_ 5 #ifndef V8_ACCESSORS_H_
6 #define V8_ACCESSORS_H_ 6 #define V8_ACCESSORS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
11 #include "src/handles.h" 11 #include "src/handles.h"
12 #include "src/property-details.h" 12 #include "src/property-details.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Forward declarations. 17 // Forward declarations.
18 class AccessorInfo; 18 class AccessorInfo;
19 19
20 // The list of accessor descriptors. This is a second-order macro 20 // The list of accessor descriptors. This is a second-order macro
21 // taking a macro to be applied to all accessor descriptor names. 21 // taking a macro to be applied to all accessor descriptor names.
22 #define ACCESSOR_INFO_LIST(V) \ 22 #define ACCESSOR_INFO_LIST(V) \
23 V(ArgumentsIterator) \ 23 V(ArgumentsIterator) \
24 V(ArrayLength) \ 24 V(ArrayLength) \
25 V(BoundFunctionLength) \ 25 V(BoundFunctionLength) \
26 V(BoundFunctionName) \ 26 V(BoundFunctionName) \
27 V(ErrorStack) \
28 V(FunctionArguments) \ 27 V(FunctionArguments) \
29 V(FunctionCaller) \ 28 V(FunctionCaller) \
30 V(FunctionName) \ 29 V(FunctionName) \
31 V(FunctionLength) \ 30 V(FunctionLength) \
32 V(FunctionPrototype) \ 31 V(FunctionPrototype) \
33 V(ScriptColumnOffset) \ 32 V(ScriptColumnOffset) \
34 V(ScriptCompilationType) \ 33 V(ScriptCompilationType) \
35 V(ScriptContextData) \ 34 V(ScriptContextData) \
36 V(ScriptEvalFromScript) \ 35 V(ScriptEvalFromScript) \
37 V(ScriptEvalFromScriptPosition) \ 36 V(ScriptEvalFromScriptPosition) \
38 V(ScriptEvalFromFunctionName) \ 37 V(ScriptEvalFromFunctionName) \
39 V(ScriptId) \ 38 V(ScriptId) \
40 V(ScriptLineEnds) \ 39 V(ScriptLineEnds) \
41 V(ScriptLineOffset) \ 40 V(ScriptLineOffset) \
42 V(ScriptName) \ 41 V(ScriptName) \
43 V(ScriptSource) \ 42 V(ScriptSource) \
44 V(ScriptType) \ 43 V(ScriptType) \
45 V(ScriptSourceUrl) \ 44 V(ScriptSourceUrl) \
46 V(ScriptSourceMappingUrl) \ 45 V(ScriptSourceMappingUrl) \
47 V(ScriptIsEmbedderDebugScript) \ 46 V(ScriptIsEmbedderDebugScript) \
48 V(StringLength) 47 V(StringLength)
49 48
50 #define ACCESSOR_SETTER_LIST(V) \ 49 #define ACCESSOR_SETTER_LIST(V) \
51 V(ReconfigureToDataProperty) \ 50 V(ReconfigureToDataProperty) \
52 V(ArrayLengthSetter) \ 51 V(ArrayLengthSetter) \
53 V(ErrorStackSetter) \
54 V(FunctionPrototypeSetter) 52 V(FunctionPrototypeSetter)
55 53
56 // Accessors contains all predefined proxy accessors. 54 // Accessors contains all predefined proxy accessors.
57 55
58 class Accessors : public AllStatic { 56 class Accessors : public AllStatic {
59 public: 57 public:
60 // Accessor descriptors. 58 // Accessor descriptors.
61 #define ACCESSOR_INFO_DECLARATION(name) \ 59 #define ACCESSOR_INFO_DECLARATION(name) \
62 static void name##Getter( \ 60 static void name##Getter( \
63 v8::Local<v8::Name> name, \ 61 v8::Local<v8::Name> name, \
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Handle<Name> name, 96 Handle<Name> name,
99 AccessorNameGetterCallback getter, 97 AccessorNameGetterCallback getter,
100 AccessorNameSetterCallback setter, 98 AccessorNameSetterCallback setter,
101 PropertyAttributes attributes); 99 PropertyAttributes attributes);
102 }; 100 };
103 101
104 } // namespace internal 102 } // namespace internal
105 } // namespace v8 103 } // namespace v8
106 104
107 #endif // V8_ACCESSORS_H_ 105 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698