Reviewers: Yang,
Message:
Is this right/ok?
Description:
Switch to use MayNamedAccess() in Runtime.
BUG=None
TEST=None
[email protected]
LOG=N
Please review this at https://codereview.chromium.org/159323003/
SVN Base: git://github.com/v8/v8.git@master
Affected files (+3, -3 lines):
M src/runtime.cc
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index
eb5552e3ecb7423dc29553926c76ad233fc04954..f9ca8cc398d4183de5d6ce8f2c707d9f89ab9866
100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -1611,9 +1611,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPrototype) {
ASSERT(!obj->IsAccessCheckNeeded() || obj->IsJSObject());
do {
if (obj->IsAccessCheckNeeded() &&
- !isolate->MayNamedAccessWrapper(Handle<JSObject>::cast(obj),
- isolate->factory()->proto_string(),
- v8::ACCESS_GET)) {
+ !isolate->MayNamedAccess(JSObject::cast(*obj),
+ *isolate->factory()->proto_string(),
+ v8::ACCESS_GET)) {
isolate->ReportFailedAccessCheck(JSObject::cast(*obj),
v8::ACCESS_GET);
RETURN_IF_SCHEDULED_EXCEPTION(isolate);
return isolate->heap()->undefined_value();
--
--
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/groups/opt_out.