OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 // This class is here in order to be able to declare it a friend of | 390 // This class is here in order to be able to declare it a friend of |
391 // HandleScope. Moving these methods to be members of HandleScope would be | 391 // HandleScope. Moving these methods to be members of HandleScope would be |
392 // neat in some ways, but it would expose internal implementation details in | 392 // neat in some ways, but it would expose internal implementation details in |
393 // our public header file, which is undesirable. | 393 // our public header file, which is undesirable. |
394 // | 394 // |
395 // An isolate has a single instance of this class to hold the current thread's | 395 // An isolate has a single instance of this class to hold the current thread's |
396 // data. In multithreaded V8 programs this data is copied in and out of storage | 396 // data. In multithreaded V8 programs this data is copied in and out of storage |
397 // so that the currently executing thread always has its own copy of this | 397 // so that the currently executing thread always has its own copy of this |
398 // data. | 398 // data. |
399 ISOLATED_CLASS HandleScopeImplementer { | 399 class HandleScopeImplementer { |
400 public: | 400 public: |
401 | 401 |
402 explicit HandleScopeImplementer(Isolate* isolate) | 402 explicit HandleScopeImplementer(Isolate* isolate) |
403 : isolate_(isolate), | 403 : isolate_(isolate), |
404 blocks_(0), | 404 blocks_(0), |
405 entered_contexts_(0), | 405 entered_contexts_(0), |
406 saved_contexts_(0), | 406 saved_contexts_(0), |
407 spare_(NULL), | 407 spare_(NULL), |
408 ignore_out_of_memory_(false), | 408 ignore_out_of_memory_(false), |
409 call_depth_(0) { } | 409 call_depth_(0) { } |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 stress_type_ = stress_type; | 565 stress_type_ = stress_type; |
566 } | 566 } |
567 | 567 |
568 private: | 568 private: |
569 static v8::Testing::StressType stress_type_; | 569 static v8::Testing::StressType stress_type_; |
570 }; | 570 }; |
571 | 571 |
572 } } // namespace v8::internal | 572 } } // namespace v8::internal |
573 | 573 |
574 #endif // V8_API_H_ | 574 #endif // V8_API_H_ |
OLD | NEW |