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
This commit is contained in:
parent
6b489d9753
commit
fe67f8a9ad
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user