| 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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 } | 953 } |
| 954 | 954 |
| 955 bool serializer_enabled() const { return serializer_enabled_; } | 955 bool serializer_enabled() const { return serializer_enabled_; } |
| 956 bool snapshot_available() const { | 956 bool snapshot_available() const { |
| 957 return snapshot_blob_ != NULL && snapshot_blob_->raw_size != 0; | 957 return snapshot_blob_ != NULL && snapshot_blob_->raw_size != 0; |
| 958 } | 958 } |
| 959 | 959 |
| 960 bool IsDead() { return has_fatal_error_; } | 960 bool IsDead() { return has_fatal_error_; } |
| 961 void SignalFatalError() { has_fatal_error_ = true; } | 961 void SignalFatalError() { has_fatal_error_ = true; } |
| 962 | 962 |
| 963 bool use_crankshaft() const; | 963 bool use_crankshaft(); |
| 964 | 964 |
| 965 bool initialized_from_snapshot() { return initialized_from_snapshot_; } | 965 bool initialized_from_snapshot() { return initialized_from_snapshot_; } |
| 966 | 966 |
| 967 bool NeedsSourcePositionsForProfiling() const; | 967 bool NeedsSourcePositionsForProfiling() const; |
| 968 | 968 |
| 969 bool IsCodeCoverageEnabled(); |
| 970 void SetCodeCoverageList(Object* value); |
| 971 |
| 969 double time_millis_since_init() { | 972 double time_millis_since_init() { |
| 970 return heap_.MonotonicallyIncreasingTimeInMs() - time_millis_at_init_; | 973 return heap_.MonotonicallyIncreasingTimeInMs() - time_millis_at_init_; |
| 971 } | 974 } |
| 972 | 975 |
| 973 DateCache* date_cache() { | 976 DateCache* date_cache() { |
| 974 return date_cache_; | 977 return date_cache_; |
| 975 } | 978 } |
| 976 | 979 |
| 977 void set_date_cache(DateCache* date_cache) { | 980 void set_date_cache(DateCache* date_cache) { |
| 978 if (date_cache != date_cache_) { | 981 if (date_cache != date_cache_) { |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1710 | 1713 |
| 1711 EmbeddedVector<char, 128> filename_; | 1714 EmbeddedVector<char, 128> filename_; |
| 1712 FILE* file_; | 1715 FILE* file_; |
| 1713 int scope_depth_; | 1716 int scope_depth_; |
| 1714 }; | 1717 }; |
| 1715 | 1718 |
| 1716 } // namespace internal | 1719 } // namespace internal |
| 1717 } // namespace v8 | 1720 } // namespace v8 |
| 1718 | 1721 |
| 1719 #endif // V8_ISOLATE_H_ | 1722 #endif // V8_ISOLATE_H_ |
| OLD | NEW |