#include "config.h"
#include "bindings/v8/ScriptCallStackFactory.h"
-#include "bindings/v8/ScriptScope.h"
#include "bindings/v8/ScriptValue.h"
#include "bindings/v8/V8Binding.h"
-#include "bindings/v8/V8Utilities.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/ScriptArguments.h"
#include "core/inspector/ScriptCallFrame.h"
{
v8::Isolate* isolate = v8::Isolate::GetCurrent();
if (!isolate->InContext())
- return 0;
+ return nullptr;
v8::HandleScope handleScope(isolate);
v8::Handle<v8::StackTrace> stackTrace(v8::StackTrace::CurrentStackTrace(isolate, maxStackSize, stackTraceOptions));
return createScriptCallStack(stackTrace, maxStackSize, emptyStackIsAllowed, isolate);
{
size_t stackSize = 1;
if (InspectorInstrumentation::hasFrontends()) {
- ExecutionContext* executionContext = getExecutionContext();
+ ExecutionContext* executionContext = currentExecutionContext(v8::Isolate::GetCurrent());
if (InspectorInstrumentation::consoleAgentEnabled(executionContext))
stackSize = maxStackSize;
}
{
v8::Isolate* isolate = v8arguments.GetIsolate();
v8::HandleScope scope(isolate);
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
- ScriptState* state = ScriptState::forContext(context);
+ ScriptState* scriptState = ScriptState::current(isolate);
Vector<ScriptValue> arguments;
for (int i = skipArgumentCount; i < v8arguments.Length(); ++i)
- arguments.append(ScriptValue(v8arguments[i], isolate));
+ arguments.append(ScriptValue(scriptState, v8arguments[i]));
- return ScriptArguments::create(state, arguments);
+ return ScriptArguments::create(scriptState, arguments);
}
} // namespace WebCore