OLD | NEW |
1 // Copyright 2011 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 |
(...skipping 2776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2787 ENTER_V8(isolate); | 2787 ENTER_V8(isolate); |
2788 i::Handle<i::JSObject> self = Utils::OpenHandle(this); | 2788 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
2789 EXCEPTION_PREAMBLE(isolate); | 2789 EXCEPTION_PREAMBLE(isolate); |
2790 i::Handle<i::Object> result = i::GetElement(self, index); | 2790 i::Handle<i::Object> result = i::GetElement(self, index); |
2791 has_pending_exception = result.is_null(); | 2791 has_pending_exception = result.is_null(); |
2792 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); | 2792 EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); |
2793 return Utils::ToLocal(result); | 2793 return Utils::ToLocal(result); |
2794 } | 2794 } |
2795 | 2795 |
2796 | 2796 |
| 2797 PropertyAttribute v8::Object::GetPropertyAttributes(v8::Handle<Value> key) { |
| 2798 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
| 2799 ON_BAILOUT(isolate, "v8::Object::GetPropertyAttribute()", |
| 2800 return static_cast<PropertyAttribute>(NONE)); |
| 2801 ENTER_V8(isolate); |
| 2802 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
| 2803 i::Handle<i::Object> key_obj = Utils::OpenHandle(*key); |
| 2804 EXCEPTION_PREAMBLE(isolate); |
| 2805 PropertyAttributes result = |
| 2806 i::GetPropertyAttribute(self, key_obj, &has_pending_exception); |
| 2807 EXCEPTION_BAILOUT_CHECK(isolate, static_cast<PropertyAttribute>(NONE)); |
| 2808 return static_cast<PropertyAttribute>(result); |
| 2809 } |
| 2810 |
| 2811 |
2797 Local<Value> v8::Object::GetPrototype() { | 2812 Local<Value> v8::Object::GetPrototype() { |
2798 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 2813 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
2799 ON_BAILOUT(isolate, "v8::Object::GetPrototype()", | 2814 ON_BAILOUT(isolate, "v8::Object::GetPrototype()", |
2800 return Local<v8::Value>()); | 2815 return Local<v8::Value>()); |
2801 ENTER_V8(isolate); | 2816 ENTER_V8(isolate); |
2802 i::Handle<i::Object> self = Utils::OpenHandle(this); | 2817 i::Handle<i::Object> self = Utils::OpenHandle(this); |
2803 i::Handle<i::Object> result = i::GetPrototype(self); | 2818 i::Handle<i::Object> result = i::GetPrototype(self); |
2804 return Utils::ToLocal(result); | 2819 return Utils::ToLocal(result); |
2805 } | 2820 } |
2806 | 2821 |
(...skipping 3238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6045 | 6060 |
6046 | 6061 |
6047 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6062 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6048 HandleScopeImplementer* scope_implementer = | 6063 HandleScopeImplementer* scope_implementer = |
6049 reinterpret_cast<HandleScopeImplementer*>(storage); | 6064 reinterpret_cast<HandleScopeImplementer*>(storage); |
6050 scope_implementer->IterateThis(v); | 6065 scope_implementer->IterateThis(v); |
6051 return storage + ArchiveSpacePerThread(); | 6066 return storage + ArchiveSpacePerThread(); |
6052 } | 6067 } |
6053 | 6068 |
6054 } } // namespace v8::internal | 6069 } } // namespace v8::internal |
OLD | NEW |