OLD | NEW |
---|---|
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
392 }; | 392 }; |
393 | 393 |
394 | 394 |
395 class DeferredHandles { | 395 class DeferredHandles { |
396 public: | 396 public: |
397 ~DeferredHandles(); | 397 ~DeferredHandles(); |
398 | 398 |
399 private: | 399 private: |
400 DeferredHandles(DeferredHandles* next, Object** first_block_limit, | 400 DeferredHandles(DeferredHandles* next, Object** first_block_limit, |
401 HandleScopeImplementer* impl) | 401 HandleScopeImplementer* impl) |
402 : next_(next), previous_(NULL), first_block_limit_(first_block_limit), | 402 : next_(next), previous_(NULL), first_block_limit_(first_block_limit), |
Jakob Kummerow
2012/07/12 07:22:23
nit: While you are at it, put each of these initia
| |
403 impl_(impl) {} | 403 impl_(impl) { |
404 if (next != NULL) next->previous_ = this; | |
405 } | |
404 | 406 |
405 void Iterate(ObjectVisitor* v); | 407 void Iterate(ObjectVisitor* v); |
406 | 408 |
407 List<Object**> blocks_; | 409 List<Object**> blocks_; |
408 DeferredHandles* next_; | 410 DeferredHandles* next_; |
409 DeferredHandles* previous_; | 411 DeferredHandles* previous_; |
410 Object** first_block_limit_; | 412 Object** first_block_limit_; |
411 HandleScopeImplementer* impl_; | 413 HandleScopeImplementer* impl_; |
412 | 414 |
413 friend class HandleScopeImplementer; | 415 friend class HandleScopeImplementer; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
603 stress_type_ = stress_type; | 605 stress_type_ = stress_type; |
604 } | 606 } |
605 | 607 |
606 private: | 608 private: |
607 static v8::Testing::StressType stress_type_; | 609 static v8::Testing::StressType stress_type_; |
608 }; | 610 }; |
609 | 611 |
610 } } // namespace v8::internal | 612 } } // namespace v8::internal |
611 | 613 |
612 #endif // V8_API_H_ | 614 #endif // V8_API_H_ |
OLD | NEW |