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

Unified Diff: src/heap/heap.cc

Issue 2196533003: [api] Cleaning up: Replace NeanderArray with FixedArray implementation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mind the pointers Created 4 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/heap/heap.h ('k') | src/messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 5c8052b1c912334953b93c2b9258426796702832..a23ca7335ed75ed5aee4d8550b8728fec1d69d9f 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2532,12 +2532,7 @@ void Heap::CreateApiObjects() {
// appears to be no benefit for optimize this case.
new_neander_map->set_elements_kind(TERMINAL_FAST_ELEMENTS_KIND);
set_neander_map(*new_neander_map);
-
- Handle<JSObject> listeners = factory->NewNeanderObject();
- Handle<FixedArray> elements = factory->NewFixedArray(2);
- elements->set(0, Smi::FromInt(0));
- listeners->set_elements(*elements);
- set_message_listeners(*listeners);
+ set_message_listeners(*TemplateList::New(isolate(), 2));
}
« no previous file with comments | « src/heap/heap.h ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698