| 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 | 1062 |
| 1063 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1063 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
| 1064 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1064 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
| 1065 function_entry_hook_ = function_entry_hook; | 1065 function_entry_hook_ = function_entry_hook; |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1068 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
| 1069 | 1069 |
| 1070 base::RandomNumberGenerator* random_number_generator(); | 1070 base::RandomNumberGenerator* random_number_generator(); |
| 1071 | 1071 |
| 1072 // Generates a random number that is non-zero when masked |
| 1073 // with the provided mask. |
| 1074 int GenerateIdentityHash(uint32_t mask); |
| 1075 |
| 1072 // Given an address occupied by a live code object, return that object. | 1076 // Given an address occupied by a live code object, return that object. |
| 1073 Object* FindCodeObject(Address a); | 1077 Object* FindCodeObject(Address a); |
| 1074 | 1078 |
| 1075 int NextOptimizationId() { | 1079 int NextOptimizationId() { |
| 1076 int id = next_optimization_id_++; | 1080 int id = next_optimization_id_++; |
| 1077 if (!Smi::IsValid(next_optimization_id_)) { | 1081 if (!Smi::IsValid(next_optimization_id_)) { |
| 1078 next_optimization_id_ = 0; | 1082 next_optimization_id_ = 0; |
| 1079 } | 1083 } |
| 1080 return id; | 1084 return id; |
| 1081 } | 1085 } |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 | 1682 |
| 1679 EmbeddedVector<char, 128> filename_; | 1683 EmbeddedVector<char, 128> filename_; |
| 1680 FILE* file_; | 1684 FILE* file_; |
| 1681 int scope_depth_; | 1685 int scope_depth_; |
| 1682 }; | 1686 }; |
| 1683 | 1687 |
| 1684 } // namespace internal | 1688 } // namespace internal |
| 1685 } // namespace v8 | 1689 } // namespace v8 |
| 1686 | 1690 |
| 1687 #endif // V8_ISOLATE_H_ | 1691 #endif // V8_ISOLATE_H_ |
| OLD | NEW |