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

Side by Side Diff: src/accessors.h

Issue 239223003: Handlify and convert Script accesssors to new API-style accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/accessors.cc » ('J')
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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 25 matching lines...) Expand all
36 36
37 // The list of accessor descriptors. This is a second-order macro 37 // The list of accessor descriptors. This is a second-order macro
38 // taking a macro to be applied to all accessor descriptor names. 38 // taking a macro to be applied to all accessor descriptor names.
39 #define ACCESSOR_DESCRIPTOR_LIST(V) \ 39 #define ACCESSOR_DESCRIPTOR_LIST(V) \
40 V(FunctionPrototype) \ 40 V(FunctionPrototype) \
41 V(FunctionLength) \ 41 V(FunctionLength) \
42 V(FunctionName) \ 42 V(FunctionName) \
43 V(FunctionArguments) \ 43 V(FunctionArguments) \
44 V(FunctionCaller) \ 44 V(FunctionCaller) \
45 V(ArrayLength) \ 45 V(ArrayLength) \
46 V(ScriptSource) \
47 V(ScriptName) \
48 V(ScriptId) \
49 V(ScriptLineOffset) \
50 V(ScriptColumnOffset) \
51 V(ScriptType) \ 46 V(ScriptType) \
52 V(ScriptCompilationType) \ 47 V(ScriptCompilationType) \
53 V(ScriptLineEnds) \ 48 V(ScriptLineEnds) \
54 V(ScriptContextData) \ 49 V(ScriptContextData) \
55 V(ScriptEvalFromScript) \ 50 V(ScriptEvalFromScript) \
56 V(ScriptEvalFromScriptPosition) \ 51 V(ScriptEvalFromScriptPosition) \
57 V(ScriptEvalFromFunctionName) 52 V(ScriptEvalFromFunctionName)
58 53
59 #define ACCESSOR_INFO_LIST(V) \ 54 #define ACCESSOR_INFO_LIST(V) \
55 V(ScriptColumnOffset) \
56 V(ScriptId) \
57 V(ScriptLineOffset) \
58 V(ScriptName) \
59 V(ScriptSource) \
60 V(StringLength) \ 60 V(StringLength) \
61 61
62 // Accessors contains all predefined proxy accessors. 62 // Accessors contains all predefined proxy accessors.
63 63
64 class Accessors : public AllStatic { 64 class Accessors : public AllStatic {
65 public: 65 public:
66 // Accessor descriptors. 66 // Accessor descriptors.
67 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ 67 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
68 static const AccessorDescriptor name; 68 static const AccessorDescriptor name;
69 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) 69 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Object* object, 130 Object* object,
131 void*); 131 void*);
132 static MaybeObject* FunctionGetCaller(Isolate* isolate, 132 static MaybeObject* FunctionGetCaller(Isolate* isolate,
133 Object* object, 133 Object* object,
134 void*); 134 void*);
135 static MaybeObject* ArraySetLength(Isolate* isolate, 135 static MaybeObject* ArraySetLength(Isolate* isolate,
136 JSObject* object, 136 JSObject* object,
137 Object*, 137 Object*,
138 void*); 138 void*);
139 static MaybeObject* ArrayGetLength(Isolate* isolate, Object* object, void*); 139 static MaybeObject* ArrayGetLength(Isolate* isolate, Object* object, void*);
140 static MaybeObject* StringGetLength(Isolate* isolate, Object* object, void*);
141 static MaybeObject* ScriptGetName(Isolate* isolate, Object* object, void*);
142 static MaybeObject* ScriptGetId(Isolate* isolate, Object* object, void*);
143 static MaybeObject* ScriptGetSource(Isolate* isolate, Object* object, void*);
144 static MaybeObject* ScriptGetLineOffset(Isolate* isolate,
145 Object* object,
146 void*);
147 static MaybeObject* ScriptGetColumnOffset(Isolate* isolate,
148 Object* object,
149 void*);
150 static MaybeObject* ScriptGetType(Isolate* isolate, Object* object, void*); 140 static MaybeObject* ScriptGetType(Isolate* isolate, Object* object, void*);
151 static MaybeObject* ScriptGetCompilationType(Isolate* isolate, 141 static MaybeObject* ScriptGetCompilationType(Isolate* isolate,
152 Object* object, 142 Object* object,
153 void*); 143 void*);
154 static MaybeObject* ScriptGetLineEnds(Isolate* isolate, 144 static MaybeObject* ScriptGetLineEnds(Isolate* isolate,
155 Object* object, 145 Object* object,
156 void*); 146 void*);
157 static MaybeObject* ScriptGetContextData(Isolate* isolate, 147 static MaybeObject* ScriptGetContextData(Isolate* isolate,
158 Object* object, 148 Object* object,
159 void*); 149 void*);
(...skipping 16 matching lines...) Expand all
176 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*); 166 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*);
177 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate, 167 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate,
178 JSObject*, 168 JSObject*,
179 Object* value, 169 Object* value,
180 void*); 170 void*);
181 }; 171 };
182 172
183 } } // namespace v8::internal 173 } } // namespace v8::internal
184 174
185 #endif // V8_ACCESSORS_H_ 175 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/accessors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698