Fix assert in KeyedLoadIC constructor

Don't assert when external array ICs are also handled by the KeyedLoadIC.

BUG=1346
TEST=none

Review URL: http://codereview.chromium.org/6893093

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7712 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
danno@chromium.org 2011-04-29 05:03:39 +00:00
parent fd5bff856e
commit 71f15faf70

View File

@ -328,7 +328,8 @@ class LoadIC: public IC {
class KeyedLoadIC: public IC {
public:
explicit KeyedLoadIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) {
ASSERT(target()->is_keyed_load_stub());
ASSERT(target()->is_keyed_load_stub() ||
target()->is_external_array_load_stub());
}
MUST_USE_RESULT MaybeObject* Load(State state,