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

Unified Diff: src/elements.cc

Issue 2479123002: Compiling an array literal should be context-independent. (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « src/elements.h ('k') | test/inspector/debugger/get-possible-breakpoints-array-literal.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/elements.cc
diff --git a/src/elements.cc b/src/elements.cc
index 83733cb835d3883fd3617e25f0655cc6ebad2e65..7436e15d688e9635d9277f8999781b7b13c9ede1 100644
--- a/src/elements.cc
+++ b/src/elements.cc
@@ -973,6 +973,12 @@ class ElementsAccessorBase : public ElementsAccessor {
packed_size, copy_size);
}
+ void CopyElements(Handle<FixedArrayBase> source, ElementsKind source_kind,
+ Handle<FixedArrayBase> destination, int size) {
+ Subclass::CopyElementsImpl(*source, 0, *destination, source_kind, 0,
+ kPackedSizeNotKnown, size);
+ }
+
Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) final {
return Subclass::NormalizeImpl(object, handle(object->elements()));
}
« no previous file with comments | « src/elements.h ('k') | test/inspector/debugger/get-possible-breakpoints-array-literal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698