| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 break; | 933 break; |
| 934 } | 934 } |
| 935 return; | 935 return; |
| 936 } | 936 } |
| 937 | 937 |
| 938 switch (type) { | 938 switch (type) { |
| 939 case FIXED_ARRAY_TYPE: | 939 case FIXED_ARRAY_TYPE: |
| 940 reinterpret_cast<FixedArray*>(this)->FixedArrayIterateBody(v); | 940 reinterpret_cast<FixedArray*>(this)->FixedArrayIterateBody(v); |
| 941 break; | 941 break; |
| 942 case JS_OBJECT_TYPE: | 942 case JS_OBJECT_TYPE: |
| 943 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 943 case JS_VALUE_TYPE: | 944 case JS_VALUE_TYPE: |
| 944 case JS_ARRAY_TYPE: | 945 case JS_ARRAY_TYPE: |
| 945 case JS_REGEXP_TYPE: | 946 case JS_REGEXP_TYPE: |
| 946 case JS_FUNCTION_TYPE: | 947 case JS_FUNCTION_TYPE: |
| 947 case JS_GLOBAL_PROXY_TYPE: | 948 case JS_GLOBAL_PROXY_TYPE: |
| 948 case JS_GLOBAL_OBJECT_TYPE: | 949 case JS_GLOBAL_OBJECT_TYPE: |
| 949 case JS_BUILTINS_OBJECT_TYPE: | 950 case JS_BUILTINS_OBJECT_TYPE: |
| 950 reinterpret_cast<JSObject*>(this)->JSObjectIterateBody(object_size, v); | 951 reinterpret_cast<JSObject*>(this)->JSObjectIterateBody(object_size, v); |
| 951 break; | 952 break; |
| 952 case ODDBALL_TYPE: | 953 case ODDBALL_TYPE: |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2353 return JSObject::cast(proto)->LocalLookup(name, result); | 2354 return JSObject::cast(proto)->LocalLookup(name, result); |
| 2354 } | 2355 } |
| 2355 | 2356 |
| 2356 // Do not use inline caching if the object is a non-global object | 2357 // Do not use inline caching if the object is a non-global object |
| 2357 // that requires access checks. | 2358 // that requires access checks. |
| 2358 if (!IsJSGlobalProxy() && IsAccessCheckNeeded()) { | 2359 if (!IsJSGlobalProxy() && IsAccessCheckNeeded()) { |
| 2359 result->DisallowCaching(); | 2360 result->DisallowCaching(); |
| 2360 } | 2361 } |
| 2361 | 2362 |
| 2362 // Check __proto__ before interceptor. | 2363 // Check __proto__ before interceptor. |
| 2363 if (name->Equals(Heap::Proto_symbol())) { | 2364 if (name->Equals(Heap::Proto_symbol()) && !IsJSContextExtensionObject()) { |
| 2364 result->ConstantResult(this); | 2365 result->ConstantResult(this); |
| 2365 return; | 2366 return; |
| 2366 } | 2367 } |
| 2367 | 2368 |
| 2368 // Check for lookup interceptor except when bootstrapping. | 2369 // Check for lookup interceptor except when bootstrapping. |
| 2369 if (HasNamedInterceptor() && !Bootstrapper::IsActive()) { | 2370 if (HasNamedInterceptor() && !Bootstrapper::IsActive()) { |
| 2370 result->InterceptorResult(this); | 2371 result->InterceptorResult(this); |
| 2371 return; | 2372 return; |
| 2372 } | 2373 } |
| 2373 | 2374 |
| (...skipping 4640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7014 // No break point. | 7015 // No break point. |
| 7015 if (break_point_objects()->IsUndefined()) return 0; | 7016 if (break_point_objects()->IsUndefined()) return 0; |
| 7016 // Single beak point. | 7017 // Single beak point. |
| 7017 if (!break_point_objects()->IsFixedArray()) return 1; | 7018 if (!break_point_objects()->IsFixedArray()) return 1; |
| 7018 // Multiple break points. | 7019 // Multiple break points. |
| 7019 return FixedArray::cast(break_point_objects())->length(); | 7020 return FixedArray::cast(break_point_objects())->length(); |
| 7020 } | 7021 } |
| 7021 | 7022 |
| 7022 | 7023 |
| 7023 } } // namespace v8::internal | 7024 } } // namespace v8::internal |
| OLD | NEW |