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

Side by Side Diff: include/v8.h

Issue 4100005: Version 2.5.2 (Closed)
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « SConstruct ('k') | src/accessors.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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 // scopes by disallowing certain operations. 460 // scopes by disallowing certain operations.
461 HandleScope(const HandleScope&); 461 HandleScope(const HandleScope&);
462 void operator=(const HandleScope&); 462 void operator=(const HandleScope&);
463 void* operator new(size_t size); 463 void* operator new(size_t size);
464 void operator delete(void*, size_t); 464 void operator delete(void*, size_t);
465 465
466 // This Data class is accessible internally as HandleScopeData through a 466 // This Data class is accessible internally as HandleScopeData through a
467 // typedef in the ImplementationUtilities class. 467 // typedef in the ImplementationUtilities class.
468 class V8EXPORT Data { 468 class V8EXPORT Data {
469 public: 469 public:
470 int extensions;
471 internal::Object** next; 470 internal::Object** next;
472 internal::Object** limit; 471 internal::Object** limit;
472 int level;
473
473 inline void Initialize() { 474 inline void Initialize() {
474 extensions = -1;
475 next = limit = NULL; 475 next = limit = NULL;
476 level = 0;
476 } 477 }
477 }; 478 };
479
480 void Leave();
478 481
479 Data previous_; 482
483 internal::Object** prev_next_;
484 internal::Object** prev_limit_;
480 485
481 // Allow for the active closing of HandleScopes which allows to pass a handle 486 // Allow for the active closing of HandleScopes which allows to pass a handle
482 // from the HandleScope being closed to the next top most HandleScope. 487 // from the HandleScope being closed to the next top most HandleScope.
483 bool is_closed_; 488 bool is_closed_;
484 internal::Object** RawClose(internal::Object** value); 489 internal::Object** RawClose(internal::Object** value);
485 490
486 friend class ImplementationUtilities; 491 friend class ImplementationUtilities;
487 }; 492 };
488 493
489 494
(...skipping 3250 matching lines...) Expand 10 before | Expand all | Expand 10 after
3740 3745
3741 3746
3742 } // namespace v8 3747 } // namespace v8
3743 3748
3744 3749
3745 #undef V8EXPORT 3750 #undef V8EXPORT
3746 #undef TYPE_CHECK 3751 #undef TYPE_CHECK
3747 3752
3748 3753
3749 #endif // V8_H_ 3754 #endif // V8_H_
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/accessors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698