mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
no usingnamespace, organize jsc namespace, enable -fincremental (#19122)
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const std = @import("std");
|
||||
const bun = @import("bun");
|
||||
const JSC = bun.JSC;
|
||||
const Encoder = JSC.WebCore.Encoder;
|
||||
const Encoder = JSC.WebCore.encoding;
|
||||
const Environment = bun.Environment;
|
||||
|
||||
pub const BufferVectorized = struct {
|
||||
@@ -61,7 +61,7 @@ pub const BufferVectorized = struct {
|
||||
inline 4, 8, 16 => |n| if (comptime Environment.isMac) {
|
||||
const pattern = buf[0..n];
|
||||
buf = buf[pattern.len..];
|
||||
@field(bun.C, std.fmt.comptimePrint("memset_pattern{d}", .{n}))(buf.ptr, pattern.ptr, buf.len);
|
||||
@field(bun.c, std.fmt.comptimePrint("memset_pattern{d}", .{n}))(buf.ptr, pattern.ptr, buf.len);
|
||||
return true;
|
||||
},
|
||||
else => {},
|
||||
|
||||
Reference in New Issue
Block a user