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

View File

@ -9,16 +9,27 @@ package(
cc_library(
name = "memory",
hdrs = [
"allocator.hpp",
"layout.hpp",
"memory.hpp",
],
srcs = [
"allocator.cpp",
],
deps = [
"//asl/base",
],
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 = [
"//asl/base",
"//asl/memory",
"//asl/memory:allocator",
"//asl/hashing",
],
visibility = ["//visibility:public"],
@ -86,6 +87,7 @@ cc_library(
deps = [
"//asl/base",
"//asl/memory",
"//asl/memory:allocator",
],
visibility = ["//visibility:public"],
)

View File

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