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

Side by Side Diff: src/lookup.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_LOOKUP_H_ 5 #ifndef V8_LOOKUP_H_
6 #define V8_LOOKUP_H_ 6 #define V8_LOOKUP_H_
7 7
8 #include "src/factory.h" 8 #include "src/factory.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void WriteDataValue(Handle<Object> value); 217 void WriteDataValue(Handle<Object> value);
218 void InternalizeName(); 218 void InternalizeName();
219 219
220 private: 220 private:
221 enum class InterceptorState { 221 enum class InterceptorState {
222 kUninitialized, 222 kUninitialized,
223 kSkipNonMasking, 223 kSkipNonMasking,
224 kProcessNonMasking 224 kProcessNonMasking
225 }; 225 };
226 226
227
227 Handle<Map> GetReceiverMap() const; 228 Handle<Map> GetReceiverMap() const;
228 229
229 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); 230 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map);
230 inline State LookupInHolder(Map* map, JSReceiver* holder); 231 inline State LookupInHolder(Map* map, JSReceiver* holder);
231 void RestartLookupForNonMaskingInterceptors(); 232 void RestartLookupForNonMaskingInterceptors();
232 State LookupNonMaskingInterceptorInHolder(Map* map, JSReceiver* holder); 233 State LookupNonMaskingInterceptorInHolder(Map* map, JSReceiver* holder);
233 Handle<Object> FetchValue() const; 234 Handle<Object> FetchValue() const;
234 void ReloadPropertyInformation(); 235 void ReloadPropertyInformation();
235 bool SkipInterceptor(JSObject* holder); 236 bool SkipInterceptor(JSObject* holder);
236 bool HasInterceptor(Map* map) const; 237 bool HasInterceptor(Map* map) const;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 Handle<JSReceiver> holder_; 287 Handle<JSReceiver> holder_;
287 Handle<Map> holder_map_; 288 Handle<Map> holder_map_;
288 const Handle<JSReceiver> initial_holder_; 289 const Handle<JSReceiver> initial_holder_;
289 uint32_t number_; 290 uint32_t number_;
290 }; 291 };
291 292
292 293
293 } } // namespace v8::internal 294 } } // namespace v8::internal
294 295
295 #endif // V8_LOOKUP_H_ 296 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/ic/x64/ic-x64.cc ('k') | src/messages.h » ('j') | test/mjsunit/strong/load-element.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698