Separate allocator from memory
This commit is contained in:
@ -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",
|
||||||
],
|
],
|
||||||
|
@ -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"],
|
||||||
|
)
|
||||||
|
|
||||||
|
@ -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"],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user