1. 28 Nov, 2018 1 commit
    • Yang Guo's avatar
      Introduce script to collect deprecation statistics · 49dd27b0
      Yang Guo authored
      Example:
      
      ~/v8$ tools/deprecation_stats.py include/v8.h --before=2018-10-01
      Marked as V8_DEPRECATE_SOON: 21
           556 : 2017-11-15 11:00:49 : V8_INLINE void MarkIndependent()
           568 : 2017-11-15 11:00:49 : V8_INLINE bool IsIndependent() const
          2404 : 2018-09-24 13:05:31 : V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(Local<Context> context) const
          2421 : 2015-03-09 10:49:09 : Local<Number> ToNumber(Isolate* isolate) const
          2423 : 2015-03-09 10:49:09 : Local<String> ToString(Isolate* isolate) const
        <...>
          3416 : 2015-03-09 10:49:09 : Local<Array> GetOwnPropertyNames()
          3516 : 2015-03-09 10:49:09 : bool HasRealNamedProperty(Local<String> key)
          3533 : 2015-03-09 10:49:09 : bool HasRealIndexedProperty(uint32_t index)
          3537 : 2015-03-09 10:49:09 : bool HasRealNamedCallbackProperty(Local<String> key)
      Marked as V8_DEPRECATED: 9
          1395 : 2018-09-21 23:40:51 : const CachedData* GetCachedData() const
          1853 : 2018-09-20 11:46:49 : MaybeLocal<Value> Parse(Isolate* isolate, Local<String> json_string)
          1953 : 2018-09-20 11:46:49 : std::vector<uint8_t> ReleaseBuffer()
          1977 : 2018-09-20 11:46:49 : void TransferSharedArrayBuffer(uint32_t transfer_id, Local<SharedArrayBuffer> shared_array_buffer)
          5093 : 2018-09-20 11:46:49 : Local<Value> New(Isolate* isolate, double time)
          6355 : 2018-09-20 11:46:49 : size_t max_semi_space_size()
          6361 : 2018-09-20 11:46:49 : void set_max_semi_space_size(size_t limit_in_mb)
          6380 : 2018-09-20 11:46:49 : size_t max_executable_size() const
          6384 : 2018-09-20 11:46:49 : void set_max_executable_size(size_t limit_in_mb)
      
      R=delphick@chromium.org
      
      Change-Id: I723055d30457a4061cdc589a4be09c0279fd5923
      Reviewed-on: https://chromium-review.googlesource.com/c/1352307
      Commit-Queue: Dan Elphick <delphick@chromium.org>
      Commit-Queue: Yang Guo <yangguo@chromium.org>
      Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#57906}
      49dd27b0