Separate allocator from memory

This commit is contained in:
2025-03-26 21:35:18 +01:00
parent f19d93a69a
commit 2d309a2cff
4 changed files with 21 additions and 6 deletions

View File

@ -13,6 +13,7 @@ cc_library(
], ],
deps = [ deps = [
"//asl/memory", "//asl/memory",
"//asl/memory:allocator",
"//asl/base", "//asl/base",
"//asl/types:span", "//asl/types:span",
"//asl/hashing", "//asl/hashing",
@ -28,6 +29,7 @@ cc_library(
deps = [ deps = [
"//asl/base", "//asl/base",
"//asl/memory", "//asl/memory",
"//asl/memory:allocator",
"//asl/types:maybe_uninit", "//asl/types:maybe_uninit",
"//asl/hashing", "//asl/hashing",
], ],
@ -42,6 +44,7 @@ cc_library(
deps = [ deps = [
"//asl/base", "//asl/base",
"//asl/memory", "//asl/memory",
"//asl/memory:allocator",
"//asl/hashing", "//asl/hashing",
":hash_set", ":hash_set",
], ],

View File

@ -9,16 +9,27 @@ package(
cc_library( cc_library(
name = "memory", name = "memory",
hdrs = [ hdrs = [
"allocator.hpp",
"layout.hpp", "layout.hpp",
"memory.hpp", "memory.hpp",
], ],
srcs = [
"allocator.cpp",
],
deps = [ deps = [
"//asl/base", "//asl/base",
], ],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
cc_library(
name = "allocator",
hdrs = [
"allocator.hpp",
],
srcs = [
"allocator.cpp",
],
deps = [
"//asl/base",
"//asl/memory",
],
visibility = ["//visibility:public"],
)

View File

@ -14,6 +14,7 @@ cc_library(
deps = [ deps = [
"//asl/base", "//asl/base",
"//asl/memory", "//asl/memory",
"//asl/memory:allocator",
"//asl/hashing", "//asl/hashing",
], ],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
@ -86,6 +87,7 @@ cc_library(
deps = [ deps = [
"//asl/base", "//asl/base",
"//asl/memory", "//asl/memory",
"//asl/memory:allocator",
], ],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )

View File

@ -1,2 +1 @@
Separate memory and allocator Add invoke_r & co
Add invoke_t & co