| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2744 ENTER_V8(isolate); | 2744 ENTER_V8(isolate); |
| 2745 i::HandleScope scope(isolate); | 2745 i::HandleScope scope(isolate); |
| 2746 i::Handle<i::AccessorInfo> info = MakeAccessorInfo(name, | 2746 i::Handle<i::AccessorInfo> info = MakeAccessorInfo(name, |
| 2747 getter, setter, data, | 2747 getter, setter, data, |
| 2748 settings, attributes); | 2748 settings, attributes); |
| 2749 i::Handle<i::Object> result = i::SetAccessor(Utils::OpenHandle(this), info); | 2749 i::Handle<i::Object> result = i::SetAccessor(Utils::OpenHandle(this), info); |
| 2750 return !result.is_null() && !result->IsUndefined(); | 2750 return !result.is_null() && !result->IsUndefined(); |
| 2751 } | 2751 } |
| 2752 | 2752 |
| 2753 | 2753 |
| 2754 bool v8::Object::HasOwnProperty(Handle<String> key) { |
| 2755 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
| 2756 ON_BAILOUT(isolate, "v8::Object::HasOwnProperty()", |
| 2757 return false); |
| 2758 return Utils::OpenHandle(this)->HasLocalProperty( |
| 2759 *Utils::OpenHandle(*key)); |
| 2760 } |
| 2761 |
| 2762 |
| 2754 bool v8::Object::HasRealNamedProperty(Handle<String> key) { | 2763 bool v8::Object::HasRealNamedProperty(Handle<String> key) { |
| 2755 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 2764 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
| 2756 ON_BAILOUT(isolate, "v8::Object::HasRealNamedProperty()", | 2765 ON_BAILOUT(isolate, "v8::Object::HasRealNamedProperty()", |
| 2757 return false); | 2766 return false); |
| 2758 return Utils::OpenHandle(this)->HasRealNamedProperty( | 2767 return Utils::OpenHandle(this)->HasRealNamedProperty( |
| 2759 *Utils::OpenHandle(*key)); | 2768 *Utils::OpenHandle(*key)); |
| 2760 } | 2769 } |
| 2761 | 2770 |
| 2762 | 2771 |
| 2763 bool v8::Object::HasRealIndexedProperty(uint32_t index) { | 2772 bool v8::Object::HasRealIndexedProperty(uint32_t index) { |
| (...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5676 | 5685 |
| 5677 | 5686 |
| 5678 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 5687 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 5679 HandleScopeImplementer* scope_implementer = | 5688 HandleScopeImplementer* scope_implementer = |
| 5680 reinterpret_cast<HandleScopeImplementer*>(storage); | 5689 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 5681 scope_implementer->IterateThis(v); | 5690 scope_implementer->IterateThis(v); |
| 5682 return storage + ArchiveSpacePerThread(); | 5691 return storage + ArchiveSpacePerThread(); |
| 5683 } | 5692 } |
| 5684 | 5693 |
| 5685 } } // namespace v8::internal | 5694 } } // namespace v8::internal |
| OLD | NEW |