Author: [email protected]
Date: Fri Apr 3 03:30:21 2009
New Revision: 1674
Modified:
branches/bleeding_edge/src/api.cc
Log:
Add two more invocations of ENTER_V8 to places where we need to write
to V8's heap.
Review URL: http://codereview.chromium.org/60089
Modified: branches/bleeding_edge/src/api.cc
==============================================================================
--- branches/bleeding_edge/src/api.cc (original)
+++ branches/bleeding_edge/src/api.cc Fri Apr 3 03:30:21 2009
@@ -1908,6 +1908,7 @@
bool v8::Object::Has(v8::Handle<String> key) {
ON_BAILOUT("v8::Object::Has()", return false);
+ ENTER_V8;
i::Handle<i::JSObject> self = Utils::OpenHandle(this);
i::Handle<i::String> key_obj = Utils::OpenHandle(*key);
return self->HasProperty(*key_obj);
@@ -1945,6 +1946,7 @@
bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) {
ON_BAILOUT("v8::Object::HasRealNamedCallbackProperty()", return false);
+ ENTER_V8;
return Utils::OpenHandle(this)->HasRealNamedCallbackProperty(
*Utils::OpenHandle(*key));
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---