mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 06:38:11 +00:00
Adds stack space handling similar to Clang's approach, but with more support for forwarding return values. Refactors ParseAndExecute for better sharing, and for centralization of the InitStackSpace handling. Fixes #2795
35 lines
932 B
Python
35 lines
932 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
package(default_visibility = [
|
|
"//explorer:__pkg__",
|
|
"//explorer/fuzzing:__pkg__",
|
|
])
|
|
|
|
cc_library(
|
|
name = "parse_and_execute",
|
|
srcs = ["parse_and_execute.cpp"],
|
|
hdrs = ["parse_and_execute.h"],
|
|
deps = [
|
|
"//common:check",
|
|
"//common:error",
|
|
"//explorer/common:trace_stream",
|
|
"//explorer/interpreter:exec_program",
|
|
"//explorer/interpreter:stack_space",
|
|
"//explorer/syntax",
|
|
"//explorer/syntax:prelude",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "parse_and_execute_test",
|
|
srcs = ["parse_and_execute_test.cpp"],
|
|
deps = [
|
|
":parse_and_execute",
|
|
"//common:gtest_main",
|
|
"@com_google_googletest//:gtest",
|
|
],
|
|
)
|