| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 6259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6270 LookupResult result; | 6270 LookupResult result; |
| 6271 LocalLookupRealNamedProperty(name, &result); | 6271 LocalLookupRealNamedProperty(name, &result); |
| 6272 if (result.IsValid()) return GetProperty(receiver, &result, name, attributes); | 6272 if (result.IsValid()) return GetProperty(receiver, &result, name, attributes); |
| 6273 // Continue searching via the prototype chain. | 6273 // Continue searching via the prototype chain. |
| 6274 Object* pt = GetPrototype(); | 6274 Object* pt = GetPrototype(); |
| 6275 *attributes = ABSENT; | 6275 *attributes = ABSENT; |
| 6276 if (pt == Heap::null_value()) return Heap::undefined_value(); | 6276 if (pt == Heap::null_value()) return Heap::undefined_value(); |
| 6277 return pt->GetPropertyWithReceiver(receiver, name, attributes); | 6277 return pt->GetPropertyWithReceiver(receiver, name, attributes); |
| 6278 } | 6278 } |
| 6279 | 6279 |
| 6280 Object* JSObject::GetLocalPropertyPostInterceptor( |
| 6281 JSObject* receiver, |
| 6282 String* name, |
| 6283 PropertyAttributes* attributes) { |
| 6284 // Check local property in holder, ignore interceptor. |
| 6285 LookupResult result; |
| 6286 LocalLookupRealNamedProperty(name, &result); |
| 6287 if (!result.IsValid()) return Heap::undefined_value(); |
| 6288 return GetProperty(receiver, &result, name, attributes); |
| 6289 } |
| 6290 |
| 6280 | 6291 |
| 6281 Object* JSObject::GetPropertyWithInterceptor( | 6292 Object* JSObject::GetPropertyWithInterceptor( |
| 6282 JSObject* receiver, | 6293 JSObject* receiver, |
| 6283 String* name, | 6294 String* name, |
| 6284 PropertyAttributes* attributes) { | 6295 PropertyAttributes* attributes) { |
| 6285 InterceptorInfo* interceptor = GetNamedInterceptor(); | 6296 InterceptorInfo* interceptor = GetNamedInterceptor(); |
| 6286 HandleScope scope; | 6297 HandleScope scope; |
| 6287 Handle<JSObject> receiver_handle(receiver); | 6298 Handle<JSObject> receiver_handle(receiver); |
| 6288 Handle<JSObject> holder_handle(this); | 6299 Handle<JSObject> holder_handle(this); |
| 6289 Handle<String> name_handle(name); | 6300 Handle<String> name_handle(name); |
| (...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8300 if (break_point_objects()->IsUndefined()) return 0; | 8311 if (break_point_objects()->IsUndefined()) return 0; |
| 8301 // Single beak point. | 8312 // Single beak point. |
| 8302 if (!break_point_objects()->IsFixedArray()) return 1; | 8313 if (!break_point_objects()->IsFixedArray()) return 1; |
| 8303 // Multiple break points. | 8314 // Multiple break points. |
| 8304 return FixedArray::cast(break_point_objects())->length(); | 8315 return FixedArray::cast(break_point_objects())->length(); |
| 8305 } | 8316 } |
| 8306 #endif | 8317 #endif |
| 8307 | 8318 |
| 8308 | 8319 |
| 8309 } } // namespace v8::internal | 8320 } } // namespace v8::internal |
| OLD | NEW |