summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/wasm/test-wasm-trap-position.cc')
-rw-r--r--deps/v8/test/cctest/wasm/test-wasm-trap-position.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc b/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc
index 4cb9e7296e..f772b2abf6 100644
--- a/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc
+++ b/deps/v8/test/cctest/wasm/test-wasm-trap-position.cc
@@ -5,7 +5,7 @@
#include "include/v8-function.h"
#include "src/api/api-inl.h"
#include "src/codegen/assembler-inl.h"
-#include "src/objects/stack-frame-info-inl.h"
+#include "src/objects/call-site-info-inl.h"
#include "src/trap-handler/trap-handler.h"
#include "test/cctest/cctest.h"
#include "test/cctest/compiler/value-helper.h"
@@ -48,17 +48,16 @@ void CheckExceptionInfos(v8::internal::Isolate* isolate, Handle<Object> exc,
exc->Print();
// Extract stack frame from the exception.
- auto stack = Handle<FixedArray>::cast(JSReceiver::GetDataProperty(
- Handle<JSObject>::cast(exc), isolate->factory()->stack_trace_symbol()));
+ auto stack = isolate->GetSimpleStackTrace(Handle<JSObject>::cast(exc));
CHECK_EQ(N, stack->length());
for (int i = 0; i < N; ++i) {
- Handle<StackFrameInfo> info(StackFrameInfo::cast(stack->get(i)), isolate);
- auto func_name = Handle<String>::cast(StackFrameInfo::GetFunctionName(info))
- ->ToCString();
+ Handle<CallSiteInfo> info(CallSiteInfo::cast(stack->get(i)), isolate);
+ auto func_name =
+ Handle<String>::cast(CallSiteInfo::GetFunctionName(info))->ToCString();
CHECK_CSTREQ(excInfos[i].func_name, func_name.get());
- CHECK_EQ(excInfos[i].line_nr, StackFrameInfo::GetLineNumber(info));
- CHECK_EQ(excInfos[i].column, StackFrameInfo::GetColumnNumber(info));
+ CHECK_EQ(excInfos[i].line_nr, CallSiteInfo::GetLineNumber(info));
+ CHECK_EQ(excInfos[i].column, CallSiteInfo::GetColumnNumber(info));
}
}