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

Side by Side Diff: src/lookup.h

Issue 414213002: Add a new api in ObjectTemplate to prohibit interceptor for V8DOM binding (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: rework the patch by adding new kind of interceptor Created 6 years, 3 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
« no previous file with comments | « src/api.cc ('k') | src/lookup-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 Handle<Object> GetDataValue() const; 142 Handle<Object> GetDataValue() const;
143 void WriteDataValue(Handle<Object> value); 143 void WriteDataValue(Handle<Object> value);
144 144
145 void InternalizeName(); 145 void InternalizeName();
146 146
147 private: 147 private:
148 Handle<Map> GetReceiverMap() const; 148 Handle<Map> GetReceiverMap() const;
149 149
150 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); 150 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map);
151 inline State LookupInHolder(Map* map, JSReceiver* holder); 151 inline State LookupInHolder(Map* map, JSReceiver* holder);
152 State LookupRealNameInHolder(Map* map, JSReceiver* holder);
152 Handle<Object> FetchValue() const; 153 Handle<Object> FetchValue() const;
153 void ReloadPropertyInformation(); 154 void ReloadPropertyInformation();
154 155
155 bool IsBootstrapping() const; 156 bool IsBootstrapping() const;
156 157
157 // Methods that fetch data from the holder ensure they always have a holder. 158 // Methods that fetch data from the holder ensure they always have a holder.
158 // This means the receiver needs to be present as opposed to just the receiver 159 // This means the receiver needs to be present as opposed to just the receiver
159 // map. Other objects in the prototype chain are transitively guaranteed to be 160 // map. Other objects in the prototype chain are transitively guaranteed to be
160 // present via the receiver map. 161 // present via the receiver map.
161 bool is_guaranteed_to_have_holder() const { 162 bool is_guaranteed_to_have_holder() const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 MaybeHandle<Object> maybe_receiver_; 202 MaybeHandle<Object> maybe_receiver_;
202 MaybeHandle<JSReceiver> maybe_holder_; 203 MaybeHandle<JSReceiver> maybe_holder_;
203 204
204 int number_; 205 int number_;
205 }; 206 };
206 207
207 208
208 } } // namespace v8::internal 209 } } // namespace v8::internal
209 210
210 #endif // V8_LOOKUP_H_ 211 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/lookup-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698