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

Side by Side Diff: src/arguments.h

Issue 23431019: Revert "Refactoring PropertyCallbackInfo & FunctionCallbackInfo, step 1." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « include/v8.h ('k') | src/arm/stub-cache-arm.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 // 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 169
170 class PropertyCallbackArguments 170 class PropertyCallbackArguments
171 : public CustomArguments<PropertyCallbackInfo<Value> > { 171 : public CustomArguments<PropertyCallbackInfo<Value> > {
172 public: 172 public:
173 typedef PropertyCallbackInfo<Value> T; 173 typedef PropertyCallbackInfo<Value> T;
174 typedef CustomArguments<T> Super; 174 typedef CustomArguments<T> Super;
175 static const int kArgsLength = T::kArgsLength; 175 static const int kArgsLength = T::kArgsLength;
176 static const int kThisIndex = T::kThisIndex; 176 static const int kThisIndex = T::kThisIndex;
177 static const int kHolderIndex = T::kHolderIndex; 177 static const int kHolderIndex = T::kHolderIndex;
178 static const int kDataIndex = T::kDataIndex;
179 static const int kReturnValueDefaultValueIndex =
180 T::kReturnValueDefaultValueIndex;
181 static const int kIsolateIndex = T::kIsolateIndex;
182 178
183 PropertyCallbackArguments(Isolate* isolate, 179 PropertyCallbackArguments(Isolate* isolate,
184 Object* data, 180 Object* data,
185 Object* self, 181 Object* self,
186 JSObject* holder) 182 JSObject* holder)
187 : Super(isolate) { 183 : Super(isolate) {
188 Object** values = this->end(); 184 Object** values = this->end();
189 values[T::kThisIndex] = self; 185 values[T::kThisIndex] = self;
190 values[T::kHolderIndex] = holder; 186 values[T::kHolderIndex] = holder;
191 values[T::kDataIndex] = data; 187 values[T::kDataIndex] = data;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 return __RT_impl_##Name(args, isolate); \ 287 return __RT_impl_##Name(args, isolate); \
292 } \ 288 } \
293 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) 289 static Type __RT_impl_##Name(Arguments args, Isolate* isolate)
294 290
295 #define RUNTIME_ARGUMENTS(isolate, args) \ 291 #define RUNTIME_ARGUMENTS(isolate, args) \
296 args.length(), args.arguments(), isolate 292 args.length(), args.arguments(), isolate
297 293
298 } } // namespace v8::internal 294 } } // namespace v8::internal
299 295
300 #endif // V8_ARGUMENTS_H_ 296 #endif // V8_ARGUMENTS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698