Index: src/crankshaft/hydrogen.h |
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h |
index 2eba6c95133cff07bf2406ada814379dff42c9a7..f11d6d80ee1103218a0b5beda0d7eb66b1d48113 100644 |
--- a/src/crankshaft/hydrogen.h |
+++ b/src/crankshaft/hydrogen.h |
@@ -2427,14 +2427,10 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
bool TryInlineCall(Call* expr); |
bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); |
- bool TryInlineGetter(Handle<JSFunction> getter, |
- Handle<Map> receiver_map, |
- BailoutId ast_id, |
- BailoutId return_id); |
- bool TryInlineSetter(Handle<JSFunction> setter, |
- Handle<Map> receiver_map, |
- BailoutId id, |
- BailoutId assignment_id, |
+ bool TryInlineGetter(Handle<Object> getter, Handle<Map> receiver_map, |
+ BailoutId ast_id, BailoutId return_id); |
+ bool TryInlineSetter(Handle<Object> setter, Handle<Map> receiver_map, |
+ BailoutId id, BailoutId assignment_id, |
HValue* implicit_return_value); |
bool TryInlineIndirectCall(Handle<JSFunction> function, Call* expr, |
int arguments_count); |
@@ -2452,18 +2448,13 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
HValue* receiver, |
SmallMapList* receiver_types); |
bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); |
- bool TryInlineApiGetter(Handle<JSFunction> function, |
- Handle<Map> receiver_map, |
+ bool TryInlineApiGetter(Handle<Object> function, Handle<Map> receiver_map, |
BailoutId ast_id); |
- bool TryInlineApiSetter(Handle<JSFunction> function, |
- Handle<Map> receiver_map, |
+ bool TryInlineApiSetter(Handle<Object> function, Handle<Map> receiver_map, |
BailoutId ast_id); |
- bool TryInlineApiCall(Handle<JSFunction> function, |
- HValue* receiver, |
- SmallMapList* receiver_maps, |
- int argc, |
- BailoutId ast_id, |
- ApiCallType call_type); |
+ bool TryInlineApiCall(Handle<Object> function, HValue* receiver, |
+ SmallMapList* receiver_maps, int argc, BailoutId ast_id, |
+ ApiCallType call_type); |
static bool IsReadOnlyLengthDescriptor(Handle<Map> jsarray_map); |
static bool CanInlineArrayResizeOperation(Handle<Map> receiver_map); |
@@ -2606,7 +2597,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
Isolate* isolate() const { return builder_->isolate(); } |
Handle<JSObject> holder() { return holder_; } |
- Handle<JSFunction> accessor() { return accessor_; } |
+ Handle<Object> accessor() { return accessor_; } |
Handle<Object> constant() { return constant_; } |
Handle<Map> transition() { return transition_; } |
SmallMapList* field_maps() { return &field_maps_; } |
@@ -2712,7 +2703,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
Handle<Map> map_; |
Handle<Name> name_; |
Handle<JSObject> holder_; |
- Handle<JSFunction> accessor_; |
+ Handle<Object> accessor_; |
Handle<JSObject> api_holder_; |
Handle<Object> constant_; |
SmallMapList field_maps_; |