Joyee Cheung
f7049a2006
fs: refactor stats array to be more generic
...
- Pass kFsStatsFieldsLength between JS and C++ instead of using the
magic number 14
- Pass the global stats array to the completion callback of
asynchronous FSReqWrap similar to how the stats arrays are passed
to the FSReqPromise resolvers
- Abstract the stats converter and take an offset to compute the
old stats in fs.watchFile
- Use templates in node::FillStatsArray and FSReqPromise in preparation
for BigInt intergration
- Put the global stat array filler in node_internals.h because it is
shared by node_file.cc and node_stat_watcher.cc
PR-URL: https://github.com/nodejs/node/pull/19714
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-04-04 15:25:59 +08:00
..
2017-03-10 11:23:48 -08:00
2018-03-04 12:07:39 +01:00
2018-03-30 22:56:19 -07:00
2018-03-15 12:53:07 +01:00
2018-03-30 13:53:35 +02:00
2018-03-30 13:53:35 +02:00
2017-11-18 20:58:12 +01:00
2017-11-15 19:28:13 +01:00
2017-11-27 07:21:08 +01:00
2018-02-21 15:24:18 +01:00
2018-02-21 15:24:18 +01:00
2018-03-20 07:33:45 +01:00
2017-11-17 12:49:20 +01:00
2017-11-17 12:49:20 +01:00
2018-02-01 10:53:26 +01:00
2017-10-13 13:05:49 -07:00
2018-03-27 01:39:51 +01:00
2018-04-04 15:25:59 +08:00
2018-04-04 15:25:59 +08:00
2017-08-04 12:55:44 -07:00
2018-03-20 07:33:45 +01:00
2018-02-21 15:24:18 +01:00
2018-02-21 15:24:18 +01:00
2018-02-21 15:24:18 +01:00
2018-02-21 15:24:18 +01:00
2018-02-09 18:09:08 -08:00
2017-12-11 15:53:21 -08:00
2018-03-26 08:23:49 +02:00
2018-04-02 10:20:30 -07:00
2018-04-02 10:20:30 -07:00
2018-04-02 10:20:30 -07:00
2018-04-02 10:20:30 -07:00
2018-02-14 10:00:29 +01:00
2017-12-21 20:56:13 +01:00
2018-02-21 15:24:18 +01:00
2018-02-21 15:24:18 +01:00
2018-02-05 17:10:19 -05:00
2018-04-03 09:37:11 -04:00
2018-03-20 15:48:14 -04:00
2018-03-23 08:50:03 +01:00
2018-04-04 14:09:51 +08:00
2018-03-26 08:23:49 +02:00
2018-03-27 16:22:37 +02:00
2017-04-01 13:27:52 +02:00
2018-03-12 14:39:21 -05:00
2018-04-03 17:59:22 +02:00
2018-04-03 17:59:22 +02:00
2017-10-30 18:56:38 +08:00
2017-09-14 17:38:38 +02:00
2017-12-11 07:19:55 +01:00
2017-11-11 20:42:49 +11:00
2017-12-27 19:46:48 +01:00
2017-10-30 18:56:38 +08:00
2017-12-19 14:36:55 +01:00
2017-03-10 11:23:48 -08:00
2018-03-27 16:22:37 +02:00
2018-03-27 16:22:37 +02:00
2017-06-17 19:17:46 +02:00
2017-06-06 14:41:17 -07:00
2018-01-29 11:37:29 -05:00
2017-10-30 18:56:38 +08:00
2017-09-14 17:38:38 +02:00
2018-04-04 15:25:59 +08:00
2018-04-04 15:25:59 +08:00
2018-01-09 12:33:13 -08:00
2018-03-25 18:37:57 +02:00
2018-03-18 09:08:30 -07:00
2018-03-26 08:23:49 +02:00
2018-03-26 08:23:49 +02:00
2017-09-14 17:38:38 +02:00
2018-04-04 15:25:59 +08:00
2018-03-06 22:12:46 +08:00
2018-03-12 16:56:04 -07:00
2016-06-21 10:29:14 +02:00
2017-03-10 11:23:48 -08:00
2017-12-01 07:45:00 +01:00
2018-03-16 10:54:05 -07:00
2018-04-03 13:57:41 -07:00
2018-03-16 10:54:05 -07:00
2018-02-21 15:24:18 +01:00
2017-12-06 12:52:07 +01:00
2017-12-06 12:52:07 +01:00
2018-03-07 12:19:38 -06:00
2015-02-02 21:55:56 +01:00
2017-08-29 08:39:25 -07:00
2018-03-26 18:20:16 -04:00
2018-03-26 08:23:49 +02:00
2018-04-04 15:25:59 +08:00
2018-03-19 07:40:47 +08:00
2018-03-26 08:23:49 +02:00
2018-03-05 17:41:26 +00:00
2018-03-30 14:30:40 +02:00
2017-11-03 01:10:31 +01:00
2018-03-05 17:41:26 +00:00
2018-03-26 08:23:49 +02:00
2018-03-27 01:33:39 +01:00
2017-09-14 17:38:38 +02:00
2017-05-23 21:00:40 +02:00
2017-12-01 07:45:05 +01:00
2017-10-31 07:53:49 -07:00
2017-03-10 11:23:48 -08:00
2017-11-18 20:53:38 +01:00
2017-03-10 11:23:48 -08:00
2017-10-15 15:18:08 -07:00
2018-03-26 08:23:49 +02:00
2018-03-27 16:22:37 +02:00
2012-02-03 14:07:32 +00:00
2018-03-01 13:45:57 +01:00
2017-03-10 11:23:48 -08:00
2017-10-11 07:42:02 +02:00
2015-02-02 21:55:56 +01:00
2018-03-11 18:20:38 +01:00
2017-11-28 02:50:54 +01:00
2018-02-01 10:53:26 +01:00
2018-02-21 15:24:18 +01:00
2018-02-14 10:00:29 +01:00
2017-11-17 12:49:00 +01:00
2018-03-20 07:33:45 +01:00
2017-11-16 16:54:00 +01:00
2018-03-30 14:20:52 +02:00
2018-03-30 14:20:52 +02:00
2018-03-30 14:20:52 +02:00
2018-03-15 12:53:13 +01:00
2018-03-15 12:53:13 +01:00
2018-03-20 07:33:45 +01:00
2018-02-14 10:00:29 +01:00
2018-03-23 08:50:03 +01:00
2018-01-23 19:17:39 +01:00
2018-02-10 14:38:56 +01:00
2018-02-10 14:38:56 +01:00
2018-02-10 14:38:56 +01:00
2016-06-28 21:21:21 +02:00
2017-11-15 12:01:20 +01:00
2018-03-11 18:20:38 +01:00
2018-02-21 15:24:18 +01:00
2018-02-09 14:59:07 -05:00
2018-03-27 16:22:37 +02:00
2018-02-23 16:13:51 -08:00
2018-02-01 10:53:26 +01:00
2017-10-25 07:43:41 +02:00
2018-03-20 07:33:45 +01:00
2017-12-17 12:45:39 -05:00
2018-02-21 15:24:18 +01:00
2017-12-04 10:34:28 -05:00
2018-03-15 12:53:22 +01:00
2018-03-26 08:23:49 +02:00
2018-01-24 15:02:43 -08:00
2017-10-18 17:03:11 -07:00