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

Side by Side Diff: include/v8.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 | « 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 2389 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 V8_INLINE Local<Object> Holder() const; 2400 V8_INLINE Local<Object> Holder() const;
2401 V8_INLINE ReturnValue<T> GetReturnValue() const; 2401 V8_INLINE ReturnValue<T> GetReturnValue() const;
2402 // This shouldn't be public, but the arm compiler needs it. 2402 // This shouldn't be public, but the arm compiler needs it.
2403 static const int kArgsLength = 6; 2403 static const int kArgsLength = 6;
2404 2404
2405 protected: 2405 protected:
2406 friend class MacroAssembler; 2406 friend class MacroAssembler;
2407 friend class internal::PropertyCallbackArguments; 2407 friend class internal::PropertyCallbackArguments;
2408 friend class internal::CustomArguments<PropertyCallbackInfo>; 2408 friend class internal::CustomArguments<PropertyCallbackInfo>;
2409 static const int kThisIndex = 0; 2409 static const int kThisIndex = 0;
2410 static const int kHolderIndex = -1; 2410 static const int kDataIndex = -1;
2411 static const int kDataIndex = -2; 2411 static const int kReturnValueIndex = -2;
2412 static const int kReturnValueIndex = -3; 2412 static const int kReturnValueDefaultValueIndex = -3;
2413 static const int kReturnValueDefaultValueIndex = -4; 2413 static const int kIsolateIndex = -4;
2414 static const int kIsolateIndex = -5; 2414 static const int kHolderIndex = -5;
2415 2415
2416 V8_INLINE PropertyCallbackInfo(internal::Object** args) : args_(args) {} 2416 V8_INLINE PropertyCallbackInfo(internal::Object** args) : args_(args) {}
2417 internal::Object** args_; 2417 internal::Object** args_;
2418 }; 2418 };
2419 2419
2420 2420
2421 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info); 2421 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info);
2422 2422
2423 2423
2424 /** 2424 /**
(...skipping 4006 matching lines...) Expand 10 before | Expand all | Expand 10 after
6431 */ 6431 */
6432 6432
6433 6433
6434 } // namespace v8 6434 } // namespace v8
6435 6435
6436 6436
6437 #undef TYPE_CHECK 6437 #undef TYPE_CHECK
6438 6438
6439 6439
6440 #endif // V8_H_ 6440 #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