OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 | 1051 |
1052 void DumpAndResetCompilationStats(); | 1052 void DumpAndResetCompilationStats(); |
1053 | 1053 |
1054 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1054 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
1055 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1055 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
1056 function_entry_hook_ = function_entry_hook; | 1056 function_entry_hook_ = function_entry_hook; |
1057 } | 1057 } |
1058 | 1058 |
1059 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1059 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
1060 | 1060 |
1061 base::RandomNumberGenerator* random_number_generator(); | 1061 V8_EXPORT_PRIVATE base::RandomNumberGenerator* random_number_generator(); |
1062 | 1062 |
1063 // Generates a random number that is non-zero when masked | 1063 // Generates a random number that is non-zero when masked |
1064 // with the provided mask. | 1064 // with the provided mask. |
1065 int GenerateIdentityHash(uint32_t mask); | 1065 int GenerateIdentityHash(uint32_t mask); |
1066 | 1066 |
1067 // Given an address occupied by a live code object, return that object. | 1067 // Given an address occupied by a live code object, return that object. |
1068 Object* FindCodeObject(Address a); | 1068 Object* FindCodeObject(Address a); |
1069 | 1069 |
1070 int NextOptimizationId() { | 1070 int NextOptimizationId() { |
1071 int id = next_optimization_id_++; | 1071 int id = next_optimization_id_++; |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 | 1682 |
1683 EmbeddedVector<char, 128> filename_; | 1683 EmbeddedVector<char, 128> filename_; |
1684 FILE* file_; | 1684 FILE* file_; |
1685 int scope_depth_; | 1685 int scope_depth_; |
1686 }; | 1686 }; |
1687 | 1687 |
1688 } // namespace internal | 1688 } // namespace internal |
1689 } // namespace v8 | 1689 } // namespace v8 |
1690 | 1690 |
1691 #endif // V8_ISOLATE_H_ | 1691 #endif // V8_ISOLATE_H_ |
OLD | NEW |