Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index df1df79af378a0837ae086ec349d78b97a9b35fd..5bbd6d9810b1097deecd3632f5d9f02fd21e9c21 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2623,6 +2623,9 @@ void Heap::CreateFixedStubs() { |
// The eliminates the need for doing dictionary lookup in the |
// stub cache for these stubs. |
HandleScope scope(isolate()); |
+ // Canonicalize handles, so that we can share constant pool entries pointing |
+ // to code targets without dereferencing their handles. |
+ CanonicalHandleScope canonical(isolate()); |
// Create stubs that should be there, so we don't unexpectedly have to |
// create them if we need them during the creation of another stub. |