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

Side by Side Diff: src/arguments.h

Issue 23620036: Refactoring PropertyCallbackInfo & FunctionCallbackInfo, step 1. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix register allocation 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;
178 182
179 PropertyCallbackArguments(Isolate* isolate, 183 PropertyCallbackArguments(Isolate* isolate,
180 Object* data, 184 Object* data,
181 Object* self, 185 Object* self,
182 JSObject* holder) 186 JSObject* holder)
183 : Super(isolate) { 187 : Super(isolate) {
184 Object** values = this->end(); 188 Object** values = this->end();
185 values[T::kThisIndex] = self; 189 values[T::kThisIndex] = self;
186 values[T::kHolderIndex] = holder; 190 values[T::kHolderIndex] = holder;
187 values[T::kDataIndex] = data; 191 values[T::kDataIndex] = data;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 return __RT_impl_##Name(args, isolate); \ 291 return __RT_impl_##Name(args, isolate); \
288 } \ 292 } \
289 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) 293 static Type __RT_impl_##Name(Arguments args, Isolate* isolate)
290 294
291 #define RUNTIME_ARGUMENTS(isolate, args) \ 295 #define RUNTIME_ARGUMENTS(isolate, args) \
292 args.length(), args.arguments(), isolate 296 args.length(), args.arguments(), isolate
293 297
294 } } // namespace v8::internal 298 } } // namespace v8::internal
295 299
296 #endif // V8_ARGUMENTS_H_ 300 #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