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

Side by Side Diff: src/accessors.h

Issue 342453002: Arguments object has @@iterator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased, adapted to getdataproperty change Created 6 years, 4 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') | 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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 // The list of accessor descriptors. This is a second-order macro 14 // The list of accessor descriptors. This is a second-order macro
15 // taking a macro to be applied to all accessor descriptor names. 15 // taking a macro to be applied to all accessor descriptor names.
16 #define ACCESSOR_INFO_LIST(V) \ 16 #define ACCESSOR_INFO_LIST(V) \
17 V(ArrayLength) \ 17 V(ArgumentsIterator) \
18 V(FunctionArguments) \ 18 V(ArrayLength) \
19 V(FunctionCaller) \ 19 V(FunctionArguments) \
20 V(FunctionName) \ 20 V(FunctionCaller) \
21 V(FunctionLength) \ 21 V(FunctionName) \
22 V(FunctionPrototype) \ 22 V(FunctionLength) \
23 V(ScriptColumnOffset) \ 23 V(FunctionPrototype) \
24 V(ScriptCompilationType) \ 24 V(ScriptColumnOffset) \
25 V(ScriptContextData) \ 25 V(ScriptCompilationType) \
26 V(ScriptEvalFromScript) \ 26 V(ScriptContextData) \
27 V(ScriptEvalFromScriptPosition) \ 27 V(ScriptEvalFromScript) \
28 V(ScriptEvalFromFunctionName) \ 28 V(ScriptEvalFromScriptPosition) \
29 V(ScriptId) \ 29 V(ScriptEvalFromFunctionName) \
30 V(ScriptLineEnds) \ 30 V(ScriptId) \
31 V(ScriptLineOffset) \ 31 V(ScriptLineEnds) \
32 V(ScriptName) \ 32 V(ScriptLineOffset) \
33 V(ScriptSource) \ 33 V(ScriptName) \
34 V(ScriptType) \ 34 V(ScriptSource) \
35 V(ScriptSourceUrl) \ 35 V(ScriptType) \
36 V(ScriptSourceMappingUrl) \ 36 V(ScriptSourceUrl) \
37 V(ScriptSourceMappingUrl) \
37 V(StringLength) 38 V(StringLength)
38 39
39 // Accessors contains all predefined proxy accessors. 40 // Accessors contains all predefined proxy accessors.
40 41
41 class Accessors : public AllStatic { 42 class Accessors : public AllStatic {
42 public: 43 public:
43 // Accessor descriptors. 44 // Accessor descriptors.
44 #define ACCESSOR_INFO_DECLARATION(name) \ 45 #define ACCESSOR_INFO_DECLARATION(name) \
45 static void name##Getter( \ 46 static void name##Getter( \
46 v8::Local<v8::Name> name, \ 47 v8::Local<v8::Name> name, \
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 96
96 private: 97 private:
97 // Helper functions. 98 // Helper functions.
98 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); 99 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value);
99 }; 100 };
100 101
101 } } // namespace v8::internal 102 } } // namespace v8::internal
102 103
103 #endif // V8_ACCESSORS_H_ 104 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698