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

Side by Side Diff: src/arguments.h

Issue 760883002: Add interceptor support for symbols (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test Created 6 years 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 | « 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(GenericNamedPropertyQueryCallback, v8::Integer, v8::Local<v8::Name>) \
78 F(NamedPropertyQueryCallback, \ 79 F(GenericNamedPropertyDeleterCallback, v8::Boolean, v8::Local<v8::Name>) \
79 v8::Integer, \ 80 F(IndexedPropertyGetterCallback, v8::Value, uint32_t) \
80 v8::Local<v8::String>) \ 81 F(IndexedPropertyQueryCallback, v8::Integer, uint32_t) \
81 F(NamedPropertyDeleterCallback, \ 82 F(IndexedPropertyDeleterCallback, v8::Boolean, uint32_t)
82 v8::Boolean, \
83 v8::Local<v8::String>) \
84 F(IndexedPropertyGetterCallback, \
85 v8::Value, \
86 uint32_t) \
87 F(IndexedPropertyQueryCallback, \
88 v8::Integer, \
89 uint32_t) \
90 F(IndexedPropertyDeleterCallback, \
91 v8::Boolean, \
92 uint32_t) \
93 83
94 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2(F) \ 84 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2(F) \
95 F(NamedPropertySetterCallback, \ 85 F(GenericNamedPropertySetterCallback, v8::Value, v8::Local<v8::Name>, \
96 v8::Value, \ 86 v8::Local<v8::Value>) \
97 v8::Local<v8::String>, \ 87 F(IndexedPropertySetterCallback, v8::Value, uint32_t, v8::Local<v8::Value>)
98 v8::Local<v8::Value>) \
99 F(IndexedPropertySetterCallback, \
100 v8::Value, \
101 uint32_t, \
102 v8::Local<v8::Value>) \
103 88
104 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2_VOID_RETURN(F) \ 89 #define FOR_EACH_CALLBACK_TABLE_MAPPING_2_VOID_RETURN(F) \
105 F(AccessorNameSetterCallback, \ 90 F(AccessorNameSetterCallback, \
106 void, \ 91 void, \
107 v8::Local<v8::Name>, \ 92 v8::Local<v8::Name>, \
108 v8::Local<v8::Value>) \ 93 v8::Local<v8::Value>) \
109 94
110 95
111 // Custom arguments replicate a small segment of stack that can be 96 // Custom arguments replicate a small segment of stack that can be
112 // accessed through an Arguments object the same way the actual stack 97 // accessed through an Arguments object the same way the actual stack
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) 281 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name)
297 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ 282 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \
298 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) 283 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name)
299 284
300 #define RUNTIME_ARGUMENTS(isolate, args) \ 285 #define RUNTIME_ARGUMENTS(isolate, args) \
301 args.length(), args.arguments(), isolate 286 args.length(), args.arguments(), isolate
302 287
303 } } // namespace v8::internal 288 } } // namespace v8::internal
304 289
305 #endif // V8_ARGUMENTS_H_ 290 #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