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

Side by Side Diff: src/arguments.h

Issue 467013003: Add interceptor support for symbols (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated to filter out non-symbol keys from for-in enumeration Created 6 years, 3 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 | « src/api.cc ('k') | src/elements.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 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_ARGUMENTS_H_ 5 #ifndef V8_ARGUMENTS_H_
6 #define V8_ARGUMENTS_H_ 6 #define V8_ARGUMENTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 private: 61 private:
62 intptr_t length_; 62 intptr_t length_;
63 Object** arguments_; 63 Object** arguments_;
64 }; 64 };
65 65
66 66
67 // For each type of callback, we have a list of arguments 67 // For each type of callback, we have a list of arguments
68 // They are used to generate the Call() functions below 68 // They are used to generate the Call() functions below
69 // These aren't included in the list as they have duplicate signatures 69 // These aren't included in the list as they have duplicate signatures
70 // F(NamedPropertyEnumeratorCallback, ...) 70 // F(GenericNamedPropertyEnumeratorCallback, ...)
71 // F(GenericNamedPropertyGetterCallback, ...)
71 72
72 #define FOR_EACH_CALLBACK_TABLE_MAPPING_0(F) \ 73 #define FOR_EACH_CALLBACK_TABLE_MAPPING_0(F) \
73 F(IndexedPropertyEnumeratorCallback, v8::Array) \ 74 F(IndexedPropertyEnumeratorCallback, v8::Array) \
74 75
75 #define FOR_EACH_CALLBACK_TABLE_MAPPING_1(F) \ 76 #define FOR_EACH_CALLBACK_TABLE_MAPPING_1(F) \
76 F(NamedPropertyGetterCallback, v8::Value, v8::Local<v8::String>) \
77 F(AccessorNameGetterCallback, v8::Value, v8::Local<v8::Name>) \ 77 F(AccessorNameGetterCallback, v8::Value, v8::Local<v8::Name>) \
78 F(NamedPropertyQueryCallback, \ 78 F(GenericNamedPropertyQueryCallback, \
79 v8::Integer, \ 79 v8::Integer, \
80 v8::Local<v8::String>) \ 80 v8::Local<v8::Name>) \
81 F(NamedPropertyDeleterCallback, \ 81 F(GenericNamedPropertyDeleterCallback, \
82 v8::Boolean, \ 82 v8::Boolean, \
83 v8::Local<v8::String>) \ 83 v8::Local<v8::Name>) \
84 F(IndexedPropertyGetterCallback, \ 84 F(IndexedPropertyGetterCallback, \
85 v8::Value, \ 85 v8::Value, \
86 uint32_t) \ 86 uint32_t) \
87 F(IndexedPropertyQueryCallback, \ 87 F(IndexedPropertyQueryCallback, \
88 v8::Integer, \ 88 v8::Integer, \
89 uint32_t) \ 89 uint32_t) \
90 F(IndexedPropertyDeleterCallback, \ 90 F(IndexedPropertyDeleterCallback, \
91 v8::Boolean, \ 91 v8::Boolean, \
92 uint32_t) \ 92 uint32_t) \
93 93
94 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2(F) \ 94 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2(F) \
95 F(NamedPropertySetterCallback, \ 95 F(GenericNamedPropertySetterCallback, \
96 v8::Value, \ 96 v8::Value, \
97 v8::Local<v8::String>, \ 97 v8::Local<v8::Name>, \
98 v8::Local<v8::Value>) \ 98 v8::Local<v8::Value>) \
99 F(IndexedPropertySetterCallback, \ 99 F(IndexedPropertySetterCallback, \
100 v8::Value, \ 100 v8::Value, \
101 uint32_t, \ 101 uint32_t, \
102 v8::Local<v8::Value>) \ 102 v8::Local<v8::Value>) \
103 103
104 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2_VOID_RETURN(F) \ 104 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2_VOID_RETURN(F) \
105 F(AccessorNameSetterCallback, \ 105 F(AccessorNameSetterCallback, \
106 void, \ 106 void, \
107 v8::Local<v8::Name>, \ 107 v8::Local<v8::Name>, \
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) 296 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name)
297 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ 297 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \
298 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) 298 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name)
299 299
300 #define RUNTIME_ARGUMENTS(isolate, args) \ 300 #define RUNTIME_ARGUMENTS(isolate, args) \
301 args.length(), args.arguments(), isolate 301 args.length(), args.arguments(), isolate
302 302
303 } } // namespace v8::internal 303 } } // namespace v8::internal
304 304
305 #endif // V8_ARGUMENTS_H_ 305 #endif // V8_ARGUMENTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/elements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698