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

Unified Diff: src/objects.cc

Issue 2686063002: [debugger] add precise mode for code coverage. (Closed)
Patch Set: fix flag Created 3 years, 10 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.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 243b10b222a0a662165d57a82a46b852d1ddf7f4..f311b523ffcf6f86c27d5f889a7399f7a565e535 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10018,6 +10018,12 @@ Handle<ArrayList> ArrayList::Add(Handle<ArrayList> array, Handle<Object> obj1,
return array;
}
+Handle<ArrayList> ArrayList::New(Isolate* isolate, int size) {
+ Handle<ArrayList> result = Handle<ArrayList>::cast(
+ isolate->factory()->NewFixedArray(size + kFirstIndex));
+ result->SetLength(0);
+ return result;
+}
bool ArrayList::IsFull() {
int capacity = length();
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698