Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: src/hydrogen.h

Issue 14284010: Introduce HObjectAccess, which is used by LoadNamedField and StoreNamedField to denote what parts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some small cleanups; add AddLoad to simplify construction of loads Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index ab721bd3af19e02e7d45eb44bdb822cea7d118e9..c76863c0bc63a909489ccf3f09c85f397fb1962c 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1022,8 +1022,20 @@ class HGraphBuilder {
KeyedAccessStoreMode store_mode,
Representation checked_index_representation = Representation::None());
- HInstruction* BuildStoreMap(HValue* object, HValue* map);
- HInstruction* BuildStoreMap(HValue* object, Handle<Map> map);
+ HLoadNamedField * AddLoad(HValue *object, HObjectAccess* access,
+ HValue *typecheck = NULL);
+ HStoreNamedField* AddStore(HValue *object, HObjectAccess* access,
+ HValue *val, Representation representation = Representation::Tagged());
+ HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>);
+
+ HObjectAccess* AccessArrayHeader(int offset);
+ HObjectAccess* AccessArrayLength();
+ HObjectAccess* AccessElements();
+ HObjectAccess* AccessFixedArrayLength();
+ HObjectAccess* AccessMap();
+ HObjectAccess* AccessField(Handle<Map> map, Handle<String> name,
+ LookupResult* lookup);
+ HObjectAccess* AccessInobject(Handle<String> name, int offset);
danno 2013/05/02 14:16:47 Why not have this as a constructor for HObjectAcce
titzer 2013/05/03 09:18:41 Because the HObjectAccess pointers are actually be
class IfBuilder {
public:

Powered by Google App Engine
This is Rietveld 408576698