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

Unified Diff: src/runtime.cc

Issue 10743003: Splitting DescriptorArray::CopyInsert into CopyInsert and CopyReplace. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 years, 5 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 42d19aacde1999e01c454c35039122ff95743d37..ddbee6d12537e5be4420a8f261a7fa52e62a5c74 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -2181,7 +2181,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) {
details.index());
// Construct a new field descriptors array containing the new descriptor.
DescriptorArray* new_descriptors;
- { MaybeObject* maybe_descriptors = instance_desc->CopyInsert(&new_desc);
+ { MaybeObject* maybe_descriptors =
+ instance_desc->CopyReplace(&new_desc, index);
if (!maybe_descriptors->To(&new_descriptors)) return maybe_descriptors;
}
// Create a new map featuring the new field descriptors array.
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698