Reviewers: Jakob,
Description:
Replace symbol containing "prototype" with heap->prototype_symbol.
Please review this at https://chromiumcodereview.appspot.com/10817008/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/runtime.cc
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index
31e44a4f8f2e000e75f116c878405c120110b8db..f7bd0e4ad7ed2e0932f7b94759a458fd84967918
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.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev