OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 | 183 |
184 class LookupResult BASE_EMBEDDED { | 184 class LookupResult BASE_EMBEDDED { |
185 public: | 185 public: |
186 explicit LookupResult(Isolate* isolate) | 186 explicit LookupResult(Isolate* isolate) |
187 : isolate_(isolate), | 187 : isolate_(isolate), |
188 next_(isolate->top_lookup_result()), | 188 next_(isolate->top_lookup_result()), |
189 lookup_type_(NOT_FOUND), | 189 lookup_type_(NOT_FOUND), |
190 holder_(NULL), | 190 holder_(NULL), |
191 cacheable_(true), | 191 cacheable_(true), |
192 details_(NONE, NONEXISTENT) { | 192 details_(NONE, NULL_DESCRIPTOR) { |
193 isolate->SetTopLookupResult(this); | 193 isolate->SetTopLookupResult(this); |
194 } | 194 } |
195 | 195 |
196 ~LookupResult() { | 196 ~LookupResult() { |
197 ASSERT(isolate_->top_lookup_result() == this); | 197 ASSERT(isolate_->top_lookup_result() == this); |
198 isolate_->SetTopLookupResult(next_); | 198 isolate_->SetTopLookupResult(next_); |
199 } | 199 } |
200 | 200 |
201 void DescriptorResult(JSObject* holder, PropertyDetails details, int number) { | 201 void DescriptorResult(JSObject* holder, PropertyDetails details, int number) { |
202 lookup_type_ = DESCRIPTOR_TYPE; | 202 lookup_type_ = DESCRIPTOR_TYPE; |
(...skipping 27 matching lines...) Expand all Loading... |
230 } | 230 } |
231 | 231 |
232 void InterceptorResult(JSObject* holder) { | 232 void InterceptorResult(JSObject* holder) { |
233 lookup_type_ = INTERCEPTOR_TYPE; | 233 lookup_type_ = INTERCEPTOR_TYPE; |
234 holder_ = holder; | 234 holder_ = holder; |
235 details_ = PropertyDetails(NONE, INTERCEPTOR); | 235 details_ = PropertyDetails(NONE, INTERCEPTOR); |
236 } | 236 } |
237 | 237 |
238 void NotFound() { | 238 void NotFound() { |
239 lookup_type_ = NOT_FOUND; | 239 lookup_type_ = NOT_FOUND; |
240 details_ = PropertyDetails(NONE, NONEXISTENT); | 240 details_ = PropertyDetails(NONE, NULL_DESCRIPTOR); |
241 holder_ = NULL; | 241 holder_ = NULL; |
242 } | 242 } |
243 | 243 |
244 JSObject* holder() { | 244 JSObject* holder() { |
245 ASSERT(IsFound()); | 245 ASSERT(IsFound()); |
246 return JSObject::cast(holder_); | 246 return JSObject::cast(holder_); |
247 } | 247 } |
248 | 248 |
249 JSProxy* proxy() { | 249 JSProxy* proxy() { |
250 ASSERT(IsFound()); | 250 ASSERT(IsFound()); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 JSReceiver* holder_; | 418 JSReceiver* holder_; |
419 int number_; | 419 int number_; |
420 bool cacheable_; | 420 bool cacheable_; |
421 PropertyDetails details_; | 421 PropertyDetails details_; |
422 }; | 422 }; |
423 | 423 |
424 | 424 |
425 } } // namespace v8::internal | 425 } } // namespace v8::internal |
426 | 426 |
427 #endif // V8_PROPERTY_H_ | 427 #endif // V8_PROPERTY_H_ |
OLD | NEW |