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

Side by Side Diff: include/v8.h

Issue 23484037: Refactoring PropertyCallbackInfo & FunctionCallbackInfo, step 2. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 7 years, 2 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/arguments.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 // 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 2368 matching lines...) Expand 10 before | Expand all | Expand 10 after
2379 V8_INLINE bool IsConstructCall() const; 2379 V8_INLINE bool IsConstructCall() const;
2380 V8_INLINE Local<Value> Data() const; 2380 V8_INLINE Local<Value> Data() const;
2381 V8_INLINE Isolate* GetIsolate() const; 2381 V8_INLINE Isolate* GetIsolate() const;
2382 V8_INLINE ReturnValue<T> GetReturnValue() const; 2382 V8_INLINE ReturnValue<T> GetReturnValue() const;
2383 // This shouldn't be public, but the arm compiler needs it. 2383 // This shouldn't be public, but the arm compiler needs it.
2384 static const int kArgsLength = 7; 2384 static const int kArgsLength = 7;
2385 2385
2386 protected: 2386 protected:
2387 friend class internal::FunctionCallbackArguments; 2387 friend class internal::FunctionCallbackArguments;
2388 friend class internal::CustomArguments<FunctionCallbackInfo>; 2388 friend class internal::CustomArguments<FunctionCallbackInfo>;
2389 static const int kReturnValueIndex = 0; 2389 static const int kContextSaveIndex = 0;
2390 static const int kReturnValueDefaultValueIndex = -1; 2390 static const int kCalleeIndex = -1;
2391 static const int kIsolateIndex = -2; 2391 static const int kDataIndex = -2;
2392 static const int kDataIndex = -3; 2392 static const int kReturnValueIndex = -3;
2393 static const int kCalleeIndex = -4; 2393 static const int kReturnValueDefaultValueIndex = -4;
2394 static const int kHolderIndex = -5; 2394 static const int kIsolateIndex = -5;
2395 static const int kContextSaveIndex = -6; 2395 static const int kHolderIndex = -6;
2396 2396
2397 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args, 2397 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args,
2398 internal::Object** values, 2398 internal::Object** values,
2399 int length, 2399 int length,
2400 bool is_construct_call); 2400 bool is_construct_call);
2401 internal::Object** implicit_args_; 2401 internal::Object** implicit_args_;
2402 internal::Object** values_; 2402 internal::Object** values_;
2403 int length_; 2403 int length_;
2404 bool is_construct_call_; 2404 bool is_construct_call_;
2405 }; 2405 };
(...skipping 4068 matching lines...) Expand 10 before | Expand all | Expand 10 after
6474 */ 6474 */
6475 6475
6476 6476
6477 } // namespace v8 6477 } // namespace v8
6478 6478
6479 6479
6480 #undef TYPE_CHECK 6480 #undef TYPE_CHECK
6481 6481
6482 6482
6483 #endif // V8_H_ 6483 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698