Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: src/objects.cc

Issue 2099983004: Revert of Refactor CreateApiFunction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 2457fd8c3927643c3bc99a783126a4eb244703d1..2130e6ca939dad2dcc88a6dcd90f60ed27e06c70 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -5223,17 +5223,6 @@
}
// static
-Handle<Object> JSFunction::GetPrototype(Isolate* isolate,
- Handle<JSFunction> function) {
- DCHECK(function->IsConstructor() || function->shared()->is_generator());
- if (!function->has_prototype()) {
- Handle<Object> proto = isolate->factory()->NewFunctionPrototype(function);
- JSFunction::SetPrototype(function, proto);
- }
- return handle(function->prototype(), isolate);
-}
-
-// static
Handle<Object> JSFunction::GetName(Isolate* isolate,
Handle<JSFunction> function) {
if (function->shared()->name_should_print_as_anonymous()) {
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698