| 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 Object* JSObject::SetProperty(LookupResult* result, | 1688 Object* JSObject::SetProperty(LookupResult* result, |
| 1689 String* name, | 1689 String* name, |
| 1690 Object* value, | 1690 Object* value, |
| 1691 PropertyAttributes attributes) { | 1691 PropertyAttributes attributes) { |
| 1692 // Make sure that the top context does not change when doing callbacks or | 1692 // Make sure that the top context does not change when doing callbacks or |
| 1693 // interceptor calls. | 1693 // interceptor calls. |
| 1694 AssertNoContextChange ncc; | 1694 AssertNoContextChange ncc; |
| 1695 | 1695 |
| 1696 // Check access rights if needed. | 1696 // Check access rights if needed. |
| 1697 if (IsAccessCheckNeeded() | 1697 if (IsAccessCheckNeeded() |
| 1698 && !Top::MayNamedAccess(this, name, v8::ACCESS_SET)) { | 1698 && !Top::MayNamedAccess(this, name, v8::ACCESS_SET)) { |
| 1699 return SetPropertyWithFailedAccessCheck(result, name, value); | 1699 return SetPropertyWithFailedAccessCheck(result, name, value); |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 if (IsJSGlobalProxy()) { | 1702 if (IsJSGlobalProxy()) { |
| 1703 Object* proto = GetPrototype(); | 1703 Object* proto = GetPrototype(); |
| 1704 if (proto->IsNull()) return value; | 1704 if (proto->IsNull()) return value; |
| 1705 ASSERT(proto->IsJSGlobalObject()); | 1705 ASSERT(proto->IsJSGlobalObject()); |
| 1706 return JSObject::cast(proto)->SetProperty(result, name, value, attributes); | 1706 return JSObject::cast(proto)->SetProperty(result, name, value, attributes); |
| 1707 } | 1707 } |
| 1708 | 1708 |
| (...skipping 5849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7558 // No break point. | 7558 // No break point. |
| 7559 if (break_point_objects()->IsUndefined()) return 0; | 7559 if (break_point_objects()->IsUndefined()) return 0; |
| 7560 // Single beak point. | 7560 // Single beak point. |
| 7561 if (!break_point_objects()->IsFixedArray()) return 1; | 7561 if (!break_point_objects()->IsFixedArray()) return 1; |
| 7562 // Multiple break points. | 7562 // Multiple break points. |
| 7563 return FixedArray::cast(break_point_objects())->length(); | 7563 return FixedArray::cast(break_point_objects())->length(); |
| 7564 } | 7564 } |
| 7565 #endif | 7565 #endif |
| 7566 | 7566 |
| 7567 } } // namespace v8::internal | 7567 } } // namespace v8::internal |
| OLD | NEW |