From fe67f8a9ad21de7a0a88cb5a6b4bfa826d9bc149 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 23 Jul 2012 14:55:12 +0000 Subject: [PATCH] Replace symbol containing "prototype" with heap->prototype_symbol. Review URL: https://chromiumcodereview.appspot.com/10817008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12175 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index 31e44a4f8f..f7bd0e4ad7 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -2160,10 +2160,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) { RUNTIME_ASSERT(args.length() == 1); CONVERT_ARG_CHECKED(JSFunction, function, 0); - MaybeObject* maybe_name = - isolate->heap()->AllocateStringFromAscii(CStrVector("prototype")); - String* name; - if (!maybe_name->To(&name)) return maybe_name; + String* name = isolate->heap()->prototype_symbol(); if (function->HasFastProperties()) { // Construct a new field descriptor with updated attributes.