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

Unified Diff: src/objects.h

Issue 1014005: Attempt at pre-calculating replace regexp matches. (Closed)
Patch Set: Reuse result array. Avoid using apply. Created 10 years, 9 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/jsregexp.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index b3fe448463aa425c4b6b2cf2d1516f2798254bff..b3c88a64b1c46b42c8c42f3c8ae1d209a82bc1c2 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4617,6 +4617,9 @@ class JSArray: public JSObject {
// Uses handles. Ensures that the fixed array backing the JSArray has at
// least the stated size.
inline void EnsureSize(int minimum_size_of_backing_fixed_array);
+ // As ensure size, but sets length to the required size and ensures that
+ // holes are written above this length.
+ inline void Resize(int minimum_size_of_backing_fixed_array);
// Dispatched behavior.
#ifdef DEBUG
« no previous file with comments | « src/jsregexp.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698