git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@176
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
if (obj->IsFailure()) return false;
*cache_ptr = obj;
}
-
+
Object* new_cache =
EvalCache::cast(*cache_ptr)->Put(src, value);
if (new_cache->IsFailure()) return new_cache;
// in the eval cache. The cache may expand, and returns failure
// if it cannot expand the cache, otherwise the value is returned.
// The first parameter specifies whether the boilerplate is
- // compiled in a global context.
+ // compiled in a global context.
static Object* PutInEvalCache(bool is_global_context,
String* src, JSFunction* value);
bool Object::IsEvalCache() {
return IsHashTable() &&
- (this == Heap::eval_cache_global() ||
+ (this == Heap::eval_cache_global() ||
this == Heap::eval_cache_non_global());
}