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