Revision: 12175 Author: [email protected] Date: Mon Jul 23 07:55:12 2012 Log: Replace symbol containing "prototype" with heap->prototype_symbol.
Review URL: https://chromiumcodereview.appspot.com/10817008 http://code.google.com/p/v8/source/detail?r=12175 Modified: /branches/bleeding_edge/src/runtime.cc ======================================= --- /branches/bleeding_edge/src/runtime.cc Thu Jul 19 11:58:23 2012 +++ /branches/bleeding_edge/src/runtime.cc Mon Jul 23 07:55:12 2012 @@ -2160,10 +2160,7 @@ 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. -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
