Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1003)

Unified Diff: src/objects-inl.h

Issue 1168093002: [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix arm64 port Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 39646cd4b5e47cc2419c9fbb0a556c209dcc1440..d428d1216b12425e6f9c69656f9e2079357e6929 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1162,17 +1162,16 @@ bool Object::HasSpecificClassOf(String* name) {
MaybeHandle<Object> Object::GetProperty(Handle<Object> object,
- Handle<Name> name) {
+ Handle<Name> name, Strength strength) {
LookupIterator it(object, name);
- return GetProperty(&it);
+ return GetProperty(&it, strength);
}
-MaybeHandle<Object> Object::GetElement(Isolate* isolate,
- Handle<Object> object,
- uint32_t index) {
+MaybeHandle<Object> Object::GetElement(Isolate* isolate, Handle<Object> object,
+ uint32_t index, Strength strength) {
LookupIterator it(isolate, object, index);
- return GetProperty(&it);
+ return GetProperty(&it, strength);
}
@@ -1189,11 +1188,10 @@ Handle<Object> Object::GetPrototypeSkipHiddenPrototypes(
}
-MaybeHandle<Object> Object::GetProperty(Isolate* isolate,
- Handle<Object> object,
- const char* name) {
+MaybeHandle<Object> Object::GetProperty(Isolate* isolate, Handle<Object> object,
+ const char* name, Strength strength) {
Handle<String> str = isolate->factory()->InternalizeUtf8String(name);
- return GetProperty(object, str);
+ return GetProperty(object, str, strength);
}
@@ -6601,12 +6599,13 @@ String* String::GetForwardedInternalizedString() {
MaybeHandle<Object> Object::GetPropertyOrElement(Handle<Object> object,
- Handle<Name> name) {
+ Handle<Name> name,
+ Strength strength) {
uint32_t index;
LookupIterator it = name->AsArrayIndex(&index)
? LookupIterator(name->GetIsolate(), object, index)
: LookupIterator(object, name);
- return GetProperty(&it);
+ return GetProperty(&it, strength);
}

Powered by Google App Engine
This is Rietveld 408576698