Index: src/stub-cache.h |
diff --git a/src/stub-cache.h b/src/stub-cache.h |
index ccc3a4d9cb17a3ff0f2090bbbc669b7dcf022b9f..0edbb4efc8d73cbfa96d9f833ceb891b9b762fc1 100644 |
--- a/src/stub-cache.h |
+++ b/src/stub-cache.h |
@@ -440,9 +440,9 @@ class StubCompiler BASE_EMBEDDED { |
Label* miss_label); |
static void GenerateStoreField(MacroAssembler* masm, |
- JSObject* object, |
+ Handle<JSObject> object, |
int index, |
- Map* transition, |
+ Handle<Map> transition, |
Register receiver_reg, |
Register name_reg, |
Register scratch, |
@@ -688,8 +688,8 @@ class KeyedLoadStubCompiler: public StubCompiler { |
private: |
MaybeObject* TryGetCode(PropertyType type, |
- String* name, |
- InlineCacheState state = MONOMORPHIC); |
+ String* name, |
+ InlineCacheState state = MONOMORPHIC); |
Handle<Code> GetCode(PropertyType type, |
Handle<String> name, |
@@ -708,11 +708,6 @@ class StoreStubCompiler: public StubCompiler { |
Handle<Map> transition, |
Handle<String> name); |
- MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, |
- int index, |
- Map* transition, |
- String* name); |
- |
Handle<Code> CompileStoreCallback(Handle<JSObject> object, |
Handle<AccessorInfo> callback, |
Handle<String> name); |
@@ -730,13 +725,10 @@ class StoreStubCompiler: public StubCompiler { |
Handle<JSGlobalPropertyCell> holder, |
Handle<String> name); |
- MUST_USE_RESULT MaybeObject* CompileStoreGlobal(GlobalObject* object, |
- JSGlobalPropertyCell* holder, |
- String* name); |
- |
- |
private: |
- MaybeObject* GetCode(PropertyType type, String* name); |
+ MaybeObject* TryGetCode(PropertyType type, String* name); |
+ |
+ Handle<Code> GetCode(PropertyType type, Handle<String> name); |
StrictModeFlag strict_mode_; |
}; |
@@ -752,24 +744,12 @@ class KeyedStoreStubCompiler: public StubCompiler { |
Handle<Map> transition, |
Handle<String> name); |
- MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, |
- int index, |
- Map* transition, |
- String* name); |
- |
Handle<Code> CompileStoreElement(Handle<Map> receiver_map); |
- MUST_USE_RESULT MaybeObject* CompileStoreElement(Map* receiver_map); |
- |
Handle<Code> CompileStorePolymorphic(MapHandleList* receiver_maps, |
CodeHandleList* handler_stubs, |
MapHandleList* transitioned_maps); |
- MUST_USE_RESULT MaybeObject* CompileStorePolymorphic( |
- MapList* receiver_maps, |
- CodeList* handler_stubs, |
- MapList* transitioned_maps); |
- |
static void GenerateStoreFastElement(MacroAssembler* masm, |
bool is_js_array, |
ElementsKind element_kind); |
@@ -783,8 +763,8 @@ class KeyedStoreStubCompiler: public StubCompiler { |
static void GenerateStoreDictionaryElement(MacroAssembler* masm); |
private: |
- MaybeObject* GetCode(PropertyType type, |
- String* name, |
+ Handle<Code> GetCode(PropertyType type, |
+ Handle<String> name, |
InlineCacheState state = MONOMORPHIC); |
StrictModeFlag strict_mode_; |