Index: src/stub-cache.cc |
=================================================================== |
--- src/stub-cache.cc (revision 10127) |
+++ src/stub-cache.cc (working copy) |
@@ -184,7 +184,7 @@ |
Handle<Code> StubCache::ComputeLoadConstant(Handle<String> name, |
Handle<JSObject> receiver, |
Handle<JSObject> holder, |
- Handle<Object> value) { |
+ Handle<JSFunction> value) { |
ASSERT(IC::GetCodeCacheForObject(*receiver, *holder) == OWN_MAP); |
Code::Flags flags = |
Code::ComputeMonomorphicFlags(Code::LOAD_IC, CONSTANT_FUNCTION); |
@@ -266,7 +266,7 @@ |
Handle<Code> StubCache::ComputeKeyedLoadConstant(Handle<String> name, |
Handle<JSObject> receiver, |
Handle<JSObject> holder, |
- Handle<Object> value) { |
+ Handle<JSFunction> value) { |
ASSERT(IC::GetCodeCacheForObject(*receiver, *holder) == OWN_MAP); |
Code::Flags flags = |
Code::ComputeMonomorphicFlags(Code::KEYED_LOAD_IC, CONSTANT_FUNCTION); |