OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_GLOBAL_HANDLES_H_ | 5 #ifndef V8_GLOBAL_HANDLES_H_ |
6 #define V8_GLOBAL_HANDLES_H_ | 6 #define V8_GLOBAL_HANDLES_H_ |
7 | 7 |
8 #include "include/v8.h" | 8 #include "include/v8.h" |
9 #include "include/v8-profiler.h" | 9 #include "include/v8-profiler.h" |
10 | 10 |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 Node* node_; | 389 Node* node_; |
390 Data::Callback callback_; | 390 Data::Callback callback_; |
391 void* parameter_; | 391 void* parameter_; |
392 void* internal_fields_[v8::kInternalFieldsInWeakCallback]; | 392 void* internal_fields_[v8::kInternalFieldsInWeakCallback]; |
393 }; | 393 }; |
394 | 394 |
395 | 395 |
396 class EternalHandles { | 396 class EternalHandles { |
397 public: | 397 public: |
398 enum SingletonHandle { | 398 enum SingletonHandle { |
399 I18N_TEMPLATE_ONE, | |
400 I18N_TEMPLATE_TWO, | |
401 DATE_CACHE_VERSION, | 399 DATE_CACHE_VERSION, |
402 | 400 |
403 NUMBER_OF_SINGLETON_HANDLES | 401 NUMBER_OF_SINGLETON_HANDLES |
404 }; | 402 }; |
405 | 403 |
406 EternalHandles(); | 404 EternalHandles(); |
407 ~EternalHandles(); | 405 ~EternalHandles(); |
408 | 406 |
409 int NumberOfHandles() { return size_; } | 407 int NumberOfHandles() { return size_; } |
410 | 408 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; | 458 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; |
461 | 459 |
462 DISALLOW_COPY_AND_ASSIGN(EternalHandles); | 460 DISALLOW_COPY_AND_ASSIGN(EternalHandles); |
463 }; | 461 }; |
464 | 462 |
465 | 463 |
466 } // namespace internal | 464 } // namespace internal |
467 } // namespace v8 | 465 } // namespace v8 |
468 | 466 |
469 #endif // V8_GLOBAL_HANDLES_H_ | 467 #endif // V8_GLOBAL_HANDLES_H_ |
OLD | NEW |