Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 63b5678c4a8e55f304668a57e7334c47eadfbd57..295f563085cf5b6b00890512f7a6233d69edd4f1 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -306,6 +306,23 @@ base::SmartArrayPointer<char> CompilationInfo::GetDebugName() const { |
return name; |
} |
+StackFrame::Type CompilationInfo::GetOutputStackFrameType() const { |
+ switch (output_code_kind()) { |
+ case Code::STUB: |
+ case Code::HANDLER: |
+ case Code::BUILTIN: |
+ return StackFrame::STUB; |
+ case Code::WASM_FUNCTION: |
+ return StackFrame::WASM; |
+ case Code::JS_TO_WASM_FUNCTION: |
+ return StackFrame::JS_TO_WASM; |
+ case Code::WASM_TO_JS_FUNCTION: |
+ return StackFrame::WASM_TO_JS; |
+ default: |
+ UNIMPLEMENTED(); |
+ return StackFrame::NONE; |
+ } |
+} |
bool CompilationInfo::ExpectsJSReceiverAsReceiver() { |
return is_sloppy(language_mode()) && !is_native(); |