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

Side by Side Diff: src/accessors.h

Issue 2142933003: Move Error methods to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handle exception in GetProperty 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) \
27 V(FunctionArguments) \ 28 V(FunctionArguments) \
28 V(FunctionCaller) \ 29 V(FunctionCaller) \
29 V(FunctionName) \ 30 V(FunctionName) \
30 V(FunctionLength) \ 31 V(FunctionLength) \
31 V(FunctionPrototype) \ 32 V(FunctionPrototype) \
32 V(ScriptColumnOffset) \ 33 V(ScriptColumnOffset) \
33 V(ScriptCompilationType) \ 34 V(ScriptCompilationType) \
34 V(ScriptContextData) \ 35 V(ScriptContextData) \
35 V(ScriptEvalFromScript) \ 36 V(ScriptEvalFromScript) \
36 V(ScriptEvalFromScriptPosition) \ 37 V(ScriptEvalFromScriptPosition) \
37 V(ScriptEvalFromFunctionName) \ 38 V(ScriptEvalFromFunctionName) \
38 V(ScriptId) \ 39 V(ScriptId) \
39 V(ScriptLineEnds) \ 40 V(ScriptLineEnds) \
40 V(ScriptLineOffset) \ 41 V(ScriptLineOffset) \
41 V(ScriptName) \ 42 V(ScriptName) \
42 V(ScriptSource) \ 43 V(ScriptSource) \
43 V(ScriptType) \ 44 V(ScriptType) \
44 V(ScriptSourceUrl) \ 45 V(ScriptSourceUrl) \
45 V(ScriptSourceMappingUrl) \ 46 V(ScriptSourceMappingUrl) \
46 V(ScriptIsEmbedderDebugScript) \ 47 V(ScriptIsEmbedderDebugScript) \
47 V(StringLength) 48 V(StringLength)
48 49
49 #define ACCESSOR_SETTER_LIST(V) \ 50 #define ACCESSOR_SETTER_LIST(V) \
50 V(ReconfigureToDataProperty) \ 51 V(ReconfigureToDataProperty) \
51 V(ArrayLengthSetter) \ 52 V(ArrayLengthSetter) \
53 V(ErrorStackSetter) \
52 V(FunctionPrototypeSetter) 54 V(FunctionPrototypeSetter)
53 55
54 // Accessors contains all predefined proxy accessors. 56 // Accessors contains all predefined proxy accessors.
55 57
56 class Accessors : public AllStatic { 58 class Accessors : public AllStatic {
57 public: 59 public:
58 // Accessor descriptors. 60 // Accessor descriptors.
59 #define ACCESSOR_INFO_DECLARATION(name) \ 61 #define ACCESSOR_INFO_DECLARATION(name) \
60 static void name##Getter( \ 62 static void name##Getter( \
61 v8::Local<v8::Name> name, \ 63 v8::Local<v8::Name> name, \
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Handle<Name> name, 98 Handle<Name> name,
97 AccessorNameGetterCallback getter, 99 AccessorNameGetterCallback getter,
98 AccessorNameSetterCallback setter, 100 AccessorNameSetterCallback setter,
99 PropertyAttributes attributes); 101 PropertyAttributes attributes);
100 }; 102 };
101 103
102 } // namespace internal 104 } // namespace internal
103 } // namespace v8 105 } // namespace v8
104 106
105 #endif // V8_ACCESSORS_H_ 107 #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