diff options
Diffstat (limited to 'deps/v8/src/runtime/runtime-function.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime-function.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/deps/v8/src/runtime/runtime-function.cc b/deps/v8/src/runtime/runtime-function.cc index ac8a430761..c7100d1bf5 100644 --- a/deps/v8/src/runtime/runtime-function.cc +++ b/deps/v8/src/runtime/runtime-function.cc @@ -111,8 +111,7 @@ RUNTIME_FUNCTION(Runtime_FunctionGetContextData) { DCHECK_EQ(1, args.length()); CONVERT_ARG_CHECKED(JSFunction, fun, 0); - FixedArray* array = fun->native_context()->embedder_data(); - return array->get(v8::Context::kDebugIdIndex); + return fun->native_context()->debug_context_id(); } RUNTIME_FUNCTION(Runtime_FunctionSetInstanceClassName) { @@ -145,8 +144,7 @@ RUNTIME_FUNCTION(Runtime_FunctionSetPrototype) { CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); CONVERT_ARG_HANDLE_CHECKED(Object, value, 1); CHECK(fun->IsConstructor()); - RETURN_FAILURE_ON_EXCEPTION(isolate, - Accessors::FunctionSetPrototype(fun, value)); + JSFunction::SetPrototype(fun, value); return args[0]; // return TOS } @@ -189,7 +187,7 @@ RUNTIME_FUNCTION(Runtime_SetCode) { } target_shared->set_scope_info(source_shared->scope_info()); target_shared->set_outer_scope_info(source_shared->outer_scope_info()); - target_shared->set_length(source_shared->length()); + target_shared->set_length(source_shared->GetLength()); target_shared->set_feedback_metadata(source_shared->feedback_metadata()); target_shared->set_internal_formal_parameter_count( source_shared->internal_formal_parameter_count()); |