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

Side by Side Diff: include/v8.h

Issue 23676007: remove commented out code in v8.h (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 | « no previous file | no next file » | 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 } 537 }
538 V8_INLINE(Persistent& operator=(const Persistent& that)) { // NOLINT 538 V8_INLINE(Persistent& operator=(const Persistent& that)) { // NOLINT
539 Copy(that); 539 Copy(that);
540 return *this; 540 return *this;
541 } 541 }
542 template <class S, class M2> 542 template <class S, class M2>
543 V8_INLINE(Persistent& operator=(const Persistent<S, M2>& that)) { // NOLINT 543 V8_INLINE(Persistent& operator=(const Persistent<S, M2>& that)) { // NOLINT
544 Copy(that); 544 Copy(that);
545 return *this; 545 return *this;
546 } 546 }
547 /**
548 * The destructor will dispose the Persistent based on the
549 * kResetInDestructor flags in the traits class. Since not calling dispose
550 * can result in a memory leak, it is recommended to always set this flag.
551 */
552 // V8_INLINE(~Persistent()) {
553 // if (M::kResetInDestructor) Reset();
554 // }
555 547
556 /** 548 /**
557 * If non-empty, destroy the underlying storage cell 549 * If non-empty, destroy the underlying storage cell
558 * IsEmpty() will return true after this call. 550 * IsEmpty() will return true after this call.
559 */ 551 */
560 V8_INLINE(void Reset()); 552 V8_INLINE(void Reset());
561 template <class S> 553 template <class S>
562 /** 554 /**
563 * If non-empty, destroy the underlying storage cell 555 * If non-empty, destroy the underlying storage cell
564 * and create a new one with the contents of other if other is non empty 556 * and create a new one with the contents of other if other is non empty
(...skipping 5865 matching lines...) Expand 10 before | Expand all | Expand 10 after
6430 */ 6422 */
6431 6423
6432 6424
6433 } // namespace v8 6425 } // namespace v8
6434 6426
6435 6427
6436 #undef TYPE_CHECK 6428 #undef TYPE_CHECK
6437 6429
6438 6430
6439 #endif // V8_H_ 6431 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698