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

Side by Side Diff: include/v8.h

Issue 16032010: remove remaining V8_ALLOW_ACCESS_TO* defines from test classes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: forgot to delete Created 7 years, 6 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 | test/cctest/test-api.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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 V8_INLINE(void Clear()) { val_ = 0; } 512 V8_INLINE(void Clear()) { val_ = 0; }
513 513
514 /** 514 /**
515 * A constructor that creates a new global cell pointing to that. In contrast 515 * A constructor that creates a new global cell pointing to that. In contrast
516 * to the copy constructor, this creates a new persistent handle which needs 516 * to the copy constructor, this creates a new persistent handle which needs
517 * to be separately disposed. 517 * to be separately disposed.
518 */ 518 */
519 template <class S> V8_INLINE(Persistent(Isolate* isolate, Handle<S> that)) 519 template <class S> V8_INLINE(Persistent(Isolate* isolate, Handle<S> that))
520 : val_(*New(isolate, that)) { } 520 : val_(*New(isolate, that)) { }
521 521
522 template <class S> V8_INLINE(Persistent(Isolate* isolate,
523 Persistent<S>& that)) // NOLINT
524 : val_(*New(isolate, that)) { }
525
522 #else 526 #else
523 /** 527 /**
524 * Creates an empty persistent handle that doesn't point to any 528 * Creates an empty persistent handle that doesn't point to any
525 * storage cell. 529 * storage cell.
526 */ 530 */
527 V8_INLINE(Persistent()) : Handle<T>() { } 531 V8_INLINE(Persistent()) : Handle<T>() { }
528 532
529 /** 533 /**
530 * Creates a persistent handle for the same storage cell as the 534 * Creates a persistent handle for the same storage cell as the
531 * specified handle. This constructor allows you to pass persistent 535 * specified handle. This constructor allows you to pass persistent
(...skipping 5766 matching lines...) Expand 10 before | Expand all | Expand 10 after
6298 6302
6299 6303
6300 } // namespace v8 6304 } // namespace v8
6301 6305
6302 6306
6303 #undef V8EXPORT 6307 #undef V8EXPORT
6304 #undef TYPE_CHECK 6308 #undef TYPE_CHECK
6305 6309
6306 6310
6307 #endif // V8_H_ 6311 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698