Changes after code review#

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10373 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6997dbe1
......@@ -69,6 +69,7 @@ class Factory {
Handle<DeoptimizationOutputData> NewDeoptimizationOutputData(
int deopt_entry_count,
PretenureFlag pretenure);
// Allocates a pre-tenured empty AccessorPair.
Handle<AccessorPair> NewAccessorPair();
Handle<String> LookupSymbol(Vector<const char> str);
......
......@@ -615,8 +615,8 @@ class Heap {
// Allocates an empty PolymorphicCodeCache.
MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache();
// Allocates an empty AccessorPair.
MaybeObject* AllocateAccessorPair();
// Allocates a pre-tenured empty AccessorPair.
MUST_USE_RESULT MaybeObject* AllocateAccessorPair();
// Clear the Instanceof cache (used when a prototype changes).
inline void ClearInstanceofCache();
......
......@@ -4733,7 +4733,7 @@ Object* JSObject::LookupAccessor(String* name, bool is_getter) {
PropertyDetails details = dictionary->DetailsAt(entry);
if (details.type() == CALLBACKS) {
if (element->IsAccessorPair()) {
AccessorPair *accessors = AccessorPair::cast(element);
AccessorPair* accessors = AccessorPair::cast(element);
return is_getter ? accessors->getter() : accessors->setter();
}
}
......@@ -4751,7 +4751,7 @@ Object* JSObject::LookupAccessor(String* name, bool is_getter) {
if (result.type() == CALLBACKS) {
Object* obj = result.GetCallbackObject();
if (obj->IsAccessorPair()) {
AccessorPair *accessors = AccessorPair::cast(obj);
AccessorPair* accessors = AccessorPair::cast(obj);
return is_getter ? accessors->getter() : accessors->setter();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment