Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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; | 470 int extensions; |
| 471 internal::Object** next; | 471 internal::Object** next; |
| 472 internal::Object** limit; | 472 internal::Object** limit; |
| 473 inline void Initialize() { | 473 internal::Isolate* isolate; |
| 474 inline void Initialize(internal::Isolate* i) { | |
|
Dmitry Titov
2010/09/29 22:14:47
Tiny nit, to consider, but I'm 50-50 on it myself:
Vitaly Repeshko
2010/10/01 17:16:49
When Data is used in an API HandleScope it can't b
| |
| 474 extensions = -1; | 475 extensions = -1; |
| 475 next = limit = NULL; | 476 next = limit = NULL; |
| 477 isolate = i; | |
| 476 } | 478 } |
| 477 }; | 479 }; |
| 478 | 480 |
| 479 Data previous_; | 481 Data previous_; |
| 480 | 482 |
| 481 // Allow for the active closing of HandleScopes which allows to pass a handle | 483 // 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. | 484 // from the HandleScope being closed to the next top most HandleScope. |
| 483 bool is_closed_; | 485 bool is_closed_; |
| 484 internal::Object** RawClose(internal::Object** value); | 486 internal::Object** RawClose(internal::Object** value); |
| 485 | 487 |
| (...skipping 3286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3772 | 3774 |
| 3773 | 3775 |
| 3774 } // namespace v8 | 3776 } // namespace v8 |
| 3775 | 3777 |
| 3776 | 3778 |
| 3777 #undef V8EXPORT | 3779 #undef V8EXPORT |
| 3778 #undef TYPE_CHECK | 3780 #undef TYPE_CHECK |
| 3779 | 3781 |
| 3780 | 3782 |
| 3781 #endif // V8_H_ | 3783 #endif // V8_H_ |
| OLD | NEW |