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

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: 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 bc76cdd3de0aaee8cc1f76cfc54e15760bbde40b..64f17baa6b79bb215b81bfece96cc8176f07985c 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1017,8 +1017,16 @@ class HGraphBuilder {
KeyedAccessStoreMode store_mode,
Representation checked_index_representation = Representation::None());
- HInstruction* BuildStoreMap(HValue* object, HValue* map);
- HInstruction* BuildStoreMap(HValue* object, Handle<Map> map);
+ HStoreNamedField* AddStore(HValue *object, ObjectAccess access, HValue *val);
+
+ ObjectAccess AccessArray(int offset);
danno 2013/04/26 09:39:38 I think these methods are better suited as static
titzer 2013/04/30 15:56:47 I'm OK with putting the guts of those methods in O
danno 2013/05/02 14:16:47 Tricky/non-trick is an arbitrary judgment call, I
titzer 2013/05/03 09:18:41 I've moved these methods into static constructors
+ ObjectAccess AccessArrayLength();
+ ObjectAccess AccessElements();
+ ObjectAccess AccessFixedArrayLength();
+ ObjectAccess AccessMap();
+ ObjectAccess AccessField(Handle<Map> map, Handle<String> name,
danno 2013/04/26 09:39:38 Shouldn't need the name here, the LookupResult has
titzer 2013/04/30 15:56:47 I hunted around inside the LookupResult and couldn
+ LookupResult* lookup);
+ ObjectAccess AccessInobject(Handle<String> name, int offset);
danno 2013/04/26 09:39:38 Should take a map here. Look up the name in the de
titzer 2013/04/30 15:56:47 We might need another version that takes a map whe
class IfBuilder {
public:

Powered by Google App Engine
This is Rietveld 408576698