Revision: 20803
Author:   [email protected]
Date:     Wed Apr 16 12:24:01 2014 UTC
Log:      Limit the lifetime of handles in Map::UpdateCodeCache.

[email protected]

Review URL: https://codereview.chromium.org/236313014
http://code.google.com/p/v8/source/detail?r=20803

Modified:
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Wed Apr 16 12:16:06 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc      Wed Apr 16 12:24:01 2014 UTC
@@ -7514,6 +7514,7 @@
                           Handle<Name> name,
                           Handle<Code> code) {
   Isolate* isolate = map->GetIsolate();
+  HandleScope scope(isolate);
   // Allocate the code cache if not present.
   if (map->code_cache()->IsFixedArray()) {
     Handle<Object> result = isolate->factory()->NewCodeCache();

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to