| Index: src/stub-cache.h
|
| diff --git a/src/stub-cache.h b/src/stub-cache.h
|
| index c5dcf36ddbc94b1915370ff9bd3c7bf290ef335f..9a6d3949eabc3ec486bfffa88609f57c04ce93d6 100644
|
| --- a/src/stub-cache.h
|
| +++ b/src/stub-cache.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -46,6 +46,7 @@ namespace internal {
|
|
|
| class StubCache;
|
|
|
| +
|
| class SCTableReference {
|
| public:
|
| Address address() const { return address_; }
|
| @@ -143,9 +144,6 @@ class StubCache {
|
| String* name,
|
| JSFunction* receiver);
|
|
|
| - MUST_USE_RESULT MaybeObject* ComputeKeyedLoadSpecialized(
|
| - JSObject* receiver);
|
| -
|
| // ---
|
|
|
| MUST_USE_RESULT MaybeObject* ComputeStoreField(
|
| @@ -184,11 +182,6 @@ class StubCache {
|
| Map* transition,
|
| StrictModeFlag strict_mode);
|
|
|
| - MUST_USE_RESULT MaybeObject* ComputeKeyedStoreSpecialized(
|
| - JSObject* receiver,
|
| - StrictModeFlag strict_mode);
|
| -
|
| -
|
| MUST_USE_RESULT MaybeObject* ComputeKeyedLoadOrStoreExternalArray(
|
| JSObject* receiver,
|
| bool is_store,
|
| @@ -468,7 +461,10 @@ class StubCompiler BASE_EMBEDDED {
|
| Register scratch,
|
| Label* miss_label);
|
|
|
| - static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind);
|
| + static void GenerateLoadMiss(MacroAssembler* masm,
|
| + Code::Kind kind);
|
| +
|
| + static void GenerateKeyedLoadMissForceGeneric(MacroAssembler* masm);
|
|
|
| // Generates code that verifies that the property holder has not changed
|
| // (checking maps of objects in the prototype chain for fast and global
|
| @@ -633,10 +629,16 @@ class KeyedLoadStubCompiler: public StubCompiler {
|
| MUST_USE_RESULT MaybeObject* CompileLoadStringLength(String* name);
|
| MUST_USE_RESULT MaybeObject* CompileLoadFunctionPrototype(String* name);
|
|
|
| - MUST_USE_RESULT MaybeObject* CompileLoadSpecialized(JSObject* receiver);
|
| + MUST_USE_RESULT MaybeObject* CompileLoadSpecialized(Handle<Map> receiver_map);
|
| +
|
| + MUST_USE_RESULT MaybeObject* CompileLoadMegamorphic(
|
| + ZoneMapList* receiver_maps,
|
| + ZoneCodeList* handler_ics);
|
|
|
| private:
|
| - MaybeObject* GetCode(PropertyType type, String* name);
|
| + MaybeObject* GetCode(PropertyType type,
|
| + String* name,
|
| + InlineCacheState state = MONOMORPHIC);
|
| };
|
|
|
|
|
| @@ -677,10 +679,16 @@ class KeyedStoreStubCompiler: public StubCompiler {
|
| Map* transition,
|
| String* name);
|
|
|
| - MUST_USE_RESULT MaybeObject* CompileStoreSpecialized(JSObject* receiver);
|
| + MUST_USE_RESULT MaybeObject* CompileStoreSpecialized(Handle<Map> receiver_map);
|
| +
|
| + MUST_USE_RESULT MaybeObject* CompileStoreMegamorphic(
|
| + ZoneMapList* receiver_maps,
|
| + ZoneCodeList* handler_ics);
|
|
|
| private:
|
| - MaybeObject* GetCode(PropertyType type, String* name);
|
| + MaybeObject* GetCode(PropertyType type,
|
| + String* name,
|
| + InlineCacheState state = MONOMORPHIC);
|
|
|
| StrictModeFlag strict_mode_;
|
| };
|
|
|