#include "include/v8-function.h"
#include "src/api/api-inl.h"
#include "src/codegen/assembler-inl.h"
#include "src/objects/call-site-info-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/wasm/wasm-run-utils.h"
#include "test/common/value-helper.h"
#include "test/common/wasm/test-signatures.h"
#include "test/common/wasm/wasm-macro-gen.h"
namespace v8 {
namespace internal {
namespace wasm {
namespace test_wasm_stack {
Local;
Utils;
namespace {
#define CHECK_CSTREQ …
void PrintStackTrace(v8::Isolate* isolate, v8::Local<v8::StackTrace> stack) { … }
struct ExceptionInfo { … };
template <int N>
void CheckExceptionInfos(v8::internal::Isolate* i_isolate, Handle<Object> exc,
const ExceptionInfo (&excInfos)[N]) { … }
void CheckComputeLocation(v8::internal::Isolate* i_isolate, Handle<Object> exc,
const ExceptionInfo& topLocation,
const v8::Local<v8::StackFrame> stackFrame) { … }
#undef CHECK_CSTREQ
}
WASM_COMPILED_EXEC_TEST(CollectDetailedWasmStack_ExplicitThrowFromJs) { … }
WASM_COMPILED_EXEC_TEST(CollectDetailedWasmStack_WasmUrl) { … }
WASM_COMPILED_EXEC_TEST(CollectDetailedWasmStack_WasmError) { … }
}
}
}
}