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

Unified Diff: src/elements.h

Issue 11416238: Move CopyElements to the accessor of the target. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/elements.h
diff --git a/src/elements.h b/src/elements.h
index ffd6428ce94920ddfe8fd98abd278918b2516e73..61b9be62bd91f01d867dd0ef4795472be856949a 100644
--- a/src/elements.h
+++ b/src/elements.h
@@ -144,16 +144,16 @@ class ElementsAccessor {
JSObject* source_holder,
uint32_t source_start,
FixedArrayBase* destination,
- ElementsKind destination_kind,
+ ElementsKind from_kind,
uint32_t destination_start,
int copy_size,
FixedArrayBase* source = NULL) = 0;
MUST_USE_RESULT MaybeObject* CopyElements(JSObject* from_holder,
FixedArrayBase* to,
- ElementsKind to_kind,
+ ElementsKind from_kind,
FixedArrayBase* from = NULL) {
- return CopyElements(from_holder, 0, to, to_kind, 0,
+ return CopyElements(from_holder, 0, to, from_kind, 0,
kCopyToEndAndInitializeToHole, from);
}

Powered by Google App Engine
This is Rietveld 408576698