OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 ENTER_V8; | 1901 ENTER_V8; |
1902 HandleScope scope; | 1902 HandleScope scope; |
1903 i::Handle<i::JSObject> self = Utils::OpenHandle(this); | 1903 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
1904 i::Handle<i::String> key_obj = Utils::OpenHandle(*key); | 1904 i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
1905 return i::DeleteProperty(self, key_obj)->IsTrue(); | 1905 return i::DeleteProperty(self, key_obj)->IsTrue(); |
1906 } | 1906 } |
1907 | 1907 |
1908 | 1908 |
1909 bool v8::Object::Has(v8::Handle<String> key) { | 1909 bool v8::Object::Has(v8::Handle<String> key) { |
1910 ON_BAILOUT("v8::Object::Has()", return false); | 1910 ON_BAILOUT("v8::Object::Has()", return false); |
| 1911 ENTER_V8; |
1911 i::Handle<i::JSObject> self = Utils::OpenHandle(this); | 1912 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
1912 i::Handle<i::String> key_obj = Utils::OpenHandle(*key); | 1913 i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
1913 return self->HasProperty(*key_obj); | 1914 return self->HasProperty(*key_obj); |
1914 } | 1915 } |
1915 | 1916 |
1916 | 1917 |
1917 bool v8::Object::Delete(uint32_t index) { | 1918 bool v8::Object::Delete(uint32_t index) { |
1918 ON_BAILOUT("v8::Object::DeleteProperty()", return false); | 1919 ON_BAILOUT("v8::Object::DeleteProperty()", return false); |
1919 ENTER_V8; | 1920 ENTER_V8; |
1920 HandleScope scope; | 1921 HandleScope scope; |
(...skipping 17 matching lines...) Expand all Loading... |
1938 | 1939 |
1939 | 1940 |
1940 bool v8::Object::HasRealIndexedProperty(uint32_t index) { | 1941 bool v8::Object::HasRealIndexedProperty(uint32_t index) { |
1941 ON_BAILOUT("v8::Object::HasRealIndexedProperty()", return false); | 1942 ON_BAILOUT("v8::Object::HasRealIndexedProperty()", return false); |
1942 return Utils::OpenHandle(this)->HasRealElementProperty(index); | 1943 return Utils::OpenHandle(this)->HasRealElementProperty(index); |
1943 } | 1944 } |
1944 | 1945 |
1945 | 1946 |
1946 bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) { | 1947 bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) { |
1947 ON_BAILOUT("v8::Object::HasRealNamedCallbackProperty()", return false); | 1948 ON_BAILOUT("v8::Object::HasRealNamedCallbackProperty()", return false); |
| 1949 ENTER_V8; |
1948 return Utils::OpenHandle(this)->HasRealNamedCallbackProperty( | 1950 return Utils::OpenHandle(this)->HasRealNamedCallbackProperty( |
1949 *Utils::OpenHandle(*key)); | 1951 *Utils::OpenHandle(*key)); |
1950 } | 1952 } |
1951 | 1953 |
1952 | 1954 |
1953 bool v8::Object::HasNamedLookupInterceptor() { | 1955 bool v8::Object::HasNamedLookupInterceptor() { |
1954 ON_BAILOUT("v8::Object::HasNamedLookupInterceptor()", return false); | 1956 ON_BAILOUT("v8::Object::HasNamedLookupInterceptor()", return false); |
1955 return Utils::OpenHandle(this)->HasNamedInterceptor(); | 1957 return Utils::OpenHandle(this)->HasNamedInterceptor(); |
1956 } | 1958 } |
1957 | 1959 |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3337 reinterpret_cast<HandleScopeImplementer*>(storage); | 3339 reinterpret_cast<HandleScopeImplementer*>(storage); |
3338 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3340 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3339 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3341 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3340 &thread_local->handle_scope_data_; | 3342 &thread_local->handle_scope_data_; |
3341 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3343 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3342 | 3344 |
3343 return storage + ArchiveSpacePerThread(); | 3345 return storage + ArchiveSpacePerThread(); |
3344 } | 3346 } |
3345 | 3347 |
3346 } } // namespace v8::internal | 3348 } } // namespace v8::internal |
OLD | NEW |