This source file includes following definitions.
- evaluateMethodCustom
- restartMethodCustom
- scopeChainAttributeGetterCustom
- scopeTypeMethodCustom
- thisObjectAttributeGetterCustom
- returnValueAttributeGetterCustom
- typeAttributeGetterCustom
#include "config.h"
#include "V8JavaScriptCallFrame.h"
#include "bindings/v8/V8Binding.h"
namespace WebCore {
void V8JavaScriptCallFrame::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
String expression = toCoreStringWithUndefinedOrNullCheck(info[0]);
v8SetReturnValue(info, impl->evaluate(expression));
}
void V8JavaScriptCallFrame::restartMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
v8SetReturnValue(info, impl->restart());
}
void V8JavaScriptCallFrame::scopeChainAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
v8SetReturnValue(info, impl->scopeChain());
}
void V8JavaScriptCallFrame::scopeTypeMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
int scopeIndex = info[0]->Int32Value();
v8SetReturnValue(info, impl->scopeType(scopeIndex));
}
void V8JavaScriptCallFrame::thisObjectAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
v8SetReturnValue(info, impl->thisObject());
}
void V8JavaScriptCallFrame::returnValueAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
v8SetReturnValue(info, impl->returnValue());
}
void V8JavaScriptCallFrame::typeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>& info)
{
v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "function"));
}
}