libraries/v8/runtime.cc
// Connects SharedFunctionInfo to another script.
Connects SharedFunctionInfo to another script.
Connects SharedFunctionInfo to another script .
RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditFunctionSetScript) {
  HandleScope scope(isolate);
  CHECK(isolate->debugger()->live_edit_enabled());
  ASSERT(args.length() == 2);
  Handle<Object> function_object(args[0], isolate);
  Handle<Object> script_object(args[1], isolate);
  if (function_object->IsJSValue()) {
    Handle<JSValue> function_wrapper = Handle<JSValue>::cast(function_object);
    if (script_object->IsJSValue()) {
      RUNTIME_ASSERT(JSValue::cast(*script_object)->value()->IsScript());
      Script* script = Script::cast(JSValue::cast(*script_object)->value());
      script_object = Handle<Object>(script, isolate);
    }
    LiveEdit::SetFunctionScript(function_wrapper, script_object);
  } else {
  }
  return isolate->heap()->undefined_value();
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_LiveEditFunctionSetScript ) { HandleScope scope ( isolate ) ; CHECK ( isolate -> debugger ( ) -> live_edit_enabled ( ) ) ; ASSERT ( args . length ( ) == 2 ) ; Handle < Object > function_object ( args [ 0 ] , isolate ) ; Handle < Object > script_object ( args [ 1 ] , isolate ) ; if ( function_object -> IsJSValue ( ) ) { Handle < JSValue > function_wrapper = Handle < JSValue > :: cast ( function_object ) ; if ( script_object -> IsJSValue ( ) ) { RUNTIME_ASSERT ( JSValue :: cast ( * script_object ) -> value ( ) -> IsScript ( ) ) ; Script * script = Script :: cast ( JSValue :: cast ( * script_object ) -> value ( ) ) ; script_object = Handle < Object > ( script , isolate ) ; } LiveEdit :: SetFunctionScript ( function_wrapper , script_object ) ; } else { } return isolate -> heap ( ) -> undefined_value ( ) ; }
Connects SharedFunctionInfo to another script.
Connects SharedFunctionInfo to another script .
// Just ignore this. We may not have a SharedFunctionInfo for some functions // and we check it in this function.