File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16560,8 +16560,12 @@ class json_iterator {
1656016560 *
1656116561 * - increment_count(iter) - each time a value is found in an array or object.
1656216562 */
16563+ /**
16564+ * To backport simdjson to Node.js v20.x which uses gnu++17, this is patched to use inline
16565+ * instead of always_inline to avoid forcing GCC to inline it on platforms that don't support it.
16566+ */
1656316567 template<bool STREAMING, typename V>
16564- simdjson_warn_unused simdjson_inline error_code walk_document(V &visitor) noexcept;
16568+ simdjson_warn_unused inline error_code walk_document(V &visitor) noexcept;
1656516569
1656616570 /**
1656716571 * Create an iterator capable of walking a JSON document.
@@ -16633,8 +16637,12 @@ class json_iterator {
1663316637 simdjson_warn_unused simdjson_inline error_code visit_primitive(V &visitor, const uint8_t *value) noexcept;
1663416638};
1663516639
16640+ /**
16641+ * To backport simdjson to Node.js v20.x which uses gnu++17, this is patched to use inline
16642+ * instead of always_inline to avoid forcing GCC to inline it on platforms that don't support it.
16643+ */
1663616644template<bool STREAMING, typename V>
16637- simdjson_warn_unused simdjson_inline error_code json_iterator::walk_document(V &visitor) noexcept {
16645+ simdjson_warn_unused inline error_code json_iterator::walk_document(V &visitor) noexcept {
1663816646 logger::log_start();
1663916647
1664016648 //
You can’t perform that action at this time.
0 commit comments