|
@@ -4,28 +4,16 @@
|
|
|
|
|
|
|
|
package(default_visibility = ["//explorer:__pkg__"])
|
|
package(default_visibility = ["//explorer:__pkg__"])
|
|
|
|
|
|
|
|
-# These currently have to be a single build rule because of a dependency cycle
|
|
|
|
|
-# in printing.
|
|
|
|
|
cc_library(
|
|
cc_library(
|
|
|
- name = "action_and_value",
|
|
|
|
|
|
|
+ name = "action",
|
|
|
srcs = [
|
|
srcs = [
|
|
|
"action.cpp",
|
|
"action.cpp",
|
|
|
- "value.cpp",
|
|
|
|
|
],
|
|
],
|
|
|
hdrs = [
|
|
hdrs = [
|
|
|
"action.h",
|
|
"action.h",
|
|
|
- "value.h",
|
|
|
|
|
- "value_transform.h",
|
|
|
|
|
],
|
|
],
|
|
|
- textual_hdrs = [
|
|
|
|
|
- "value_kinds.def",
|
|
|
|
|
- ],
|
|
|
|
|
- # Exposed to resolve `member_test` dependencies.
|
|
|
|
|
- visibility = ["//explorer/ast:__pkg__"],
|
|
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":address",
|
|
|
|
|
":dictionary",
|
|
":dictionary",
|
|
|
- ":element_path",
|
|
|
|
|
":heap_allocation_interface",
|
|
":heap_allocation_interface",
|
|
|
":stack",
|
|
":stack",
|
|
|
"//common:check",
|
|
"//common:check",
|
|
@@ -50,7 +38,7 @@ cc_library(
|
|
|
"stack_fragment.h",
|
|
"stack_fragment.h",
|
|
|
],
|
|
],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":action_and_value",
|
|
|
|
|
|
|
+ ":action",
|
|
|
":stack",
|
|
":stack",
|
|
|
"//common:check",
|
|
"//common:check",
|
|
|
"//common:error",
|
|
"//common:error",
|
|
@@ -60,16 +48,6 @@ cc_library(
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-cc_library(
|
|
|
|
|
- name = "address",
|
|
|
|
|
- hdrs = ["address.h"],
|
|
|
|
|
- deps = [
|
|
|
|
|
- ":element_path",
|
|
|
|
|
- "//common:ostream",
|
|
|
|
|
- "@llvm-project//llvm:Support",
|
|
|
|
|
- ],
|
|
|
|
|
-)
|
|
|
|
|
-
|
|
|
|
|
cc_library(
|
|
cc_library(
|
|
|
name = "dictionary",
|
|
name = "dictionary",
|
|
|
hdrs = ["dictionary.h"],
|
|
hdrs = ["dictionary.h"],
|
|
@@ -99,26 +77,15 @@ cc_library(
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-cc_library(
|
|
|
|
|
- name = "element_path",
|
|
|
|
|
- hdrs = ["element_path.h"],
|
|
|
|
|
- deps = [
|
|
|
|
|
- "//common:ostream",
|
|
|
|
|
- "//explorer/ast",
|
|
|
|
|
- "//explorer/ast:static_scope",
|
|
|
|
|
- "@llvm-project//llvm:Support",
|
|
|
|
|
- ],
|
|
|
|
|
-)
|
|
|
|
|
-
|
|
|
|
|
cc_library(
|
|
cc_library(
|
|
|
name = "heap",
|
|
name = "heap",
|
|
|
srcs = ["heap.cpp"],
|
|
srcs = ["heap.cpp"],
|
|
|
hdrs = ["heap.h"],
|
|
hdrs = ["heap.h"],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":action_and_value",
|
|
|
|
|
- ":address",
|
|
|
|
|
|
|
+ ":action",
|
|
|
":heap_allocation_interface",
|
|
":heap_allocation_interface",
|
|
|
"//common:ostream",
|
|
"//common:ostream",
|
|
|
|
|
+ "//explorer/ast",
|
|
|
"//explorer/common:error_builders",
|
|
"//explorer/common:error_builders",
|
|
|
"//explorer/common:nonnull",
|
|
"//explorer/common:nonnull",
|
|
|
"//explorer/common:source_location",
|
|
"//explorer/common:source_location",
|
|
@@ -130,7 +97,7 @@ cc_library(
|
|
|
name = "heap_allocation_interface",
|
|
name = "heap_allocation_interface",
|
|
|
hdrs = ["heap_allocation_interface.h"],
|
|
hdrs = ["heap_allocation_interface.h"],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":address",
|
|
|
|
|
|
|
+ "//explorer/ast",
|
|
|
"//explorer/common:arena",
|
|
"//explorer/common:arena",
|
|
|
"//explorer/common:nonnull",
|
|
"//explorer/common:nonnull",
|
|
|
],
|
|
],
|
|
@@ -145,9 +112,8 @@ cc_library(
|
|
|
"interpreter.h",
|
|
"interpreter.h",
|
|
|
],
|
|
],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":action_and_value",
|
|
|
|
|
|
|
+ ":action",
|
|
|
":action_stack",
|
|
":action_stack",
|
|
|
- ":address",
|
|
|
|
|
":heap",
|
|
":heap",
|
|
|
":stack",
|
|
":stack",
|
|
|
":trace_stream",
|
|
":trace_stream",
|
|
@@ -180,7 +146,6 @@ cc_library(
|
|
|
srcs = ["resolve_names.cpp"],
|
|
srcs = ["resolve_names.cpp"],
|
|
|
hdrs = ["resolve_names.h"],
|
|
hdrs = ["resolve_names.h"],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":action_and_value",
|
|
|
|
|
"//common:check",
|
|
"//common:check",
|
|
|
"//explorer/ast",
|
|
"//explorer/ast",
|
|
|
"//explorer/ast:static_scope",
|
|
"//explorer/ast:static_scope",
|
|
@@ -204,7 +169,7 @@ cc_library(
|
|
|
"pattern_analysis.h",
|
|
"pattern_analysis.h",
|
|
|
],
|
|
],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":action_and_value",
|
|
|
|
|
|
|
+ ":action",
|
|
|
"//common:error",
|
|
"//common:error",
|
|
|
"//explorer/ast",
|
|
"//explorer/ast",
|
|
|
"//explorer/common:nonnull",
|
|
"//explorer/common:nonnull",
|
|
@@ -241,7 +206,7 @@ cc_library(
|
|
|
"type_checker.h",
|
|
"type_checker.h",
|
|
|
],
|
|
],
|
|
|
deps = [
|
|
deps = [
|
|
|
- ":action_and_value",
|
|
|
|
|
|
|
+ ":action",
|
|
|
":dictionary",
|
|
":dictionary",
|
|
|
":interpreter",
|
|
":interpreter",
|
|
|
":pattern_analysis",
|
|
":pattern_analysis",
|