| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 7618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7629 MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver, | 7629 MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver, |
| 7630 uint32_t index) { | 7630 uint32_t index) { |
| 7631 Isolate* isolate = GetIsolate(); | 7631 Isolate* isolate = GetIsolate(); |
| 7632 // Make sure that the top context does not change when doing | 7632 // Make sure that the top context does not change when doing |
| 7633 // callbacks or interceptor calls. | 7633 // callbacks or interceptor calls. |
| 7634 AssertNoContextChange ncc; | 7634 AssertNoContextChange ncc; |
| 7635 HandleScope scope(isolate); | 7635 HandleScope scope(isolate); |
| 7636 Handle<InterceptorInfo> interceptor(GetIndexedInterceptor(), isolate); | 7636 Handle<InterceptorInfo> interceptor(GetIndexedInterceptor(), isolate); |
| 7637 Handle<Object> this_handle(receiver, isolate); | 7637 Handle<Object> this_handle(receiver, isolate); |
| 7638 Handle<JSObject> holder_handle(this, isolate); | 7638 Handle<JSObject> holder_handle(this, isolate); |
| 7639 | |
| 7640 if (!interceptor->getter()->IsUndefined()) { | 7639 if (!interceptor->getter()->IsUndefined()) { |
| 7641 v8::IndexedPropertyGetter getter = | 7640 v8::IndexedPropertyGetter getter = |
| 7642 v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter()); | 7641 v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter()); |
| 7643 LOG(isolate, | 7642 LOG(isolate, |
| 7644 ApiIndexedPropertyAccess("interceptor-indexed-get", this, index)); | 7643 ApiIndexedPropertyAccess("interceptor-indexed-get", this, index)); |
| 7645 CustomArguments args(isolate, interceptor->data(), receiver, this); | 7644 CustomArguments args(isolate, interceptor->data(), receiver, this); |
| 7646 v8::AccessorInfo info(args.end()); | 7645 v8::AccessorInfo info(args.end()); |
| 7647 v8::Handle<v8::Value> result; | 7646 v8::Handle<v8::Value> result; |
| 7648 { | 7647 { |
| 7649 // Leaving JavaScript. | 7648 // Leaving JavaScript. |
| (...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10303 if (break_point_objects()->IsUndefined()) return 0; | 10302 if (break_point_objects()->IsUndefined()) return 0; |
| 10304 // Single beak point. | 10303 // Single beak point. |
| 10305 if (!break_point_objects()->IsFixedArray()) return 1; | 10304 if (!break_point_objects()->IsFixedArray()) return 1; |
| 10306 // Multiple break points. | 10305 // Multiple break points. |
| 10307 return FixedArray::cast(break_point_objects())->length(); | 10306 return FixedArray::cast(break_point_objects())->length(); |
| 10308 } | 10307 } |
| 10309 #endif | 10308 #endif |
| 10310 | 10309 |
| 10311 | 10310 |
| 10312 } } // namespace v8::internal | 10311 } } // namespace v8::internal |
| OLD | NEW |