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

Unified Diff: src/hydrogen-instructions.cc

Issue 330053002: ARM, ARM64: Optimize array copy (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.cc
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
index 8b40a249d34372d793adad1c69c6496d82e5bd52..19d2078eed467ec181a089a4fe6973d89b890668 100644
--- a/src/hydrogen-instructions.cc
+++ b/src/hydrogen-instructions.cc
@@ -812,12 +812,14 @@ bool HInstruction::CanDeoptimize() {
case HValue::kConstant:
case HValue::kConstructDouble:
case HValue::kContext:
+ case HValue::kCopyElements:
case HValue::kDebugBreak:
case HValue::kDeclareGlobals:
case HValue::kDoubleBits:
case HValue::kDummyUse:
case HValue::kEnterInlined:
case HValue::kEnvironmentMarker:
+ case HValue::kFillElements:
case HValue::kForceRepresentation:
case HValue::kGetCachedArrayIndex:
case HValue::kGoto:
@@ -3606,6 +3608,29 @@ void HStoreNamedField::PrintDataTo(StringStream* stream) {
}
+void HFillElements::PrintDataTo(StringStream* stream) {
+ elements()->PrintNameTo(stream);
+ stream->Add("[");
+ from()->PrintNameTo(stream);
+ stream->Add("-");
+ to()->PrintNameTo(stream);
+ stream->Add("] = ");
+ value()->PrintNameTo(stream);
+}
+
+
+void HCopyElements::PrintDataTo(StringStream* stream) {
+ dst()->PrintNameTo(stream);
+ stream->Add("[0-");
+ length()->PrintNameTo(stream);
+ stream->Add("] = ");
+ src()->PrintNameTo(stream);
+ stream->Add("[0-");
+ length()->PrintNameTo(stream);
+ stream->Add("]");
+}
+
+
void HStoreKeyed::PrintDataTo(StringStream* stream) {
if (!is_external()) {
elements()->PrintNameTo(stream);
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698