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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1674 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
2c5ce41876
commit
339e2e5244
@ -1908,6 +1908,7 @@ bool v8::Object::Delete(v8::Handle<String> key) {
|
|||||||
|
|
||||||
bool v8::Object::Has(v8::Handle<String> key) {
|
bool v8::Object::Has(v8::Handle<String> key) {
|
||||||
ON_BAILOUT("v8::Object::Has()", return false);
|
ON_BAILOUT("v8::Object::Has()", return false);
|
||||||
|
ENTER_V8;
|
||||||
i::Handle<i::JSObject> self = Utils::OpenHandle(this);
|
i::Handle<i::JSObject> self = Utils::OpenHandle(this);
|
||||||
i::Handle<i::String> key_obj = Utils::OpenHandle(*key);
|
i::Handle<i::String> key_obj = Utils::OpenHandle(*key);
|
||||||
return self->HasProperty(*key_obj);
|
return self->HasProperty(*key_obj);
|
||||||
@ -1945,6 +1946,7 @@ bool v8::Object::HasRealIndexedProperty(uint32_t index) {
|
|||||||
|
|
||||||
bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) {
|
bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) {
|
||||||
ON_BAILOUT("v8::Object::HasRealNamedCallbackProperty()", return false);
|
ON_BAILOUT("v8::Object::HasRealNamedCallbackProperty()", return false);
|
||||||
|
ENTER_V8;
|
||||||
return Utils::OpenHandle(this)->HasRealNamedCallbackProperty(
|
return Utils::OpenHandle(this)->HasRealNamedCallbackProperty(
|
||||||
*Utils::OpenHandle(*key));
|
*Utils::OpenHandle(*key));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user