Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 8617d385347a889430f0a86492cc3250da6f7a35..01f71075af1b52947d8573e4186521980b52a327 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -1862,6 +1862,10 @@ class HGraphBuilder { |
HInstruction* BuildGetNativeContext(); |
HInstruction* BuildGetScriptContext(int context_index); |
HInstruction* BuildGetArrayFunction(); |
+ HValue* BuildArrayBufferViewFieldAccessor(HValue* object, |
+ HValue* checked_object, |
+ FieldIndex index); |
+ |
protected: |
void SetSourcePosition(int position) { |
@@ -2554,6 +2558,20 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
return false; |
} |
+ bool IsJSArrayBufferViewFieldAccessor() { |
+ int offset; // unused |
+ return Accessors::IsJSArrayBufferViewFieldAccessor(map_, name_, &offset); |
+ } |
+ |
+ bool GetJSArrayBufferViewFieldAccess(HObjectAccess* access) { |
+ int offset; |
+ if (Accessors::IsJSArrayBufferViewFieldAccessor(map_, name_, &offset)) { |
+ *access = HObjectAccess::ForMapAndOffset(map_, offset); |
+ return true; |
+ } |
+ return false; |
+ } |
+ |
bool has_holder() { return !holder_.is_null(); } |
bool IsLoad() const { return access_type_ == LOAD; } |
@@ -2678,22 +2696,15 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
PropertyDetails details_; |
}; |
- HInstruction* BuildMonomorphicAccess(PropertyAccessInfo* info, |
- HValue* object, |
- HValue* checked_object, |
- HValue* value, |
- BailoutId ast_id, |
- BailoutId return_id, |
- bool can_inline_accessor = true); |
- |
- HInstruction* BuildNamedAccess(PropertyAccessType access, |
- BailoutId ast_id, |
- BailoutId reutrn_id, |
- Expression* expr, |
- HValue* object, |
- Handle<String> name, |
- HValue* value, |
- bool is_uninitialized = false); |
+ HValue* BuildMonomorphicAccess(PropertyAccessInfo* info, HValue* object, |
+ HValue* checked_object, HValue* value, |
+ BailoutId ast_id, BailoutId return_id, |
+ bool can_inline_accessor = true); |
+ |
+ HValue* BuildNamedAccess(PropertyAccessType access, BailoutId ast_id, |
+ BailoutId reutrn_id, Expression* expr, |
+ HValue* object, Handle<String> name, HValue* value, |
+ bool is_uninitialized = false); |
void HandlePolymorphicCallNamed(Call* expr, |
HValue* receiver, |