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

Unified Diff: src/arm64/lithium-arm64.cc

Issue 324093002: ARM/ARM64: Optimise HLoadNamedField and HStoreNamedField. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Upload the correct patch (minor diff in hydrogen.h) Created 6 years, 6 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/arm64/lithium-arm64.cc
diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc
index 8446edfae79fc88bb074131ffdabcba86a721788..0f82d9017a2f3fae8b248edf57036484f27bfca0 100644
--- a/src/arm64/lithium-arm64.cc
+++ b/src/arm64/lithium-arm64.cc
@@ -1725,7 +1725,11 @@ LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
LOperand* object = UseRegisterAtStart(instr->object());
- return DefineAsRegister(new(zone()) LLoadNamedField(object));
+ HValue* h_obj_properties = instr->object_properties();
+ LOperand* obj_properties =
+ (h_obj_properties != NULL) ? UseRegisterAtStart(h_obj_properties) : NULL;
+
+ return DefineAsRegister(new(zone()) LLoadNamedField(object, obj_properties));
}
@@ -2395,7 +2399,12 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
temp0 = TempRegister();
}
- return new(zone()) LStoreNamedField(object, value, temp0, temp1);
+ HValue* h_obj_properties = instr->object_properties();
+ LOperand* obj_properties =
+ (h_obj_properties != NULL) ? UseRegister(h_obj_properties) : NULL;
+
+ return new(zone())
+ LStoreNamedField(object, value, temp0, temp1, obj_properties);
}

Powered by Google App Engine
This is Rietveld 408576698