| 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 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2149 ENTER_V8; | 2149 ENTER_V8; |
| 2150 i::Handle<i::JSObject> obj = Utils::OpenHandle(this); | 2150 i::Handle<i::JSObject> obj = Utils::OpenHandle(this); |
| 2151 | 2151 |
| 2152 i::Handle<i::Map> new_map = | 2152 i::Handle<i::Map> new_map = |
| 2153 i::Factory::CopyMapDropTransitions(i::Handle<i::Map>(obj->map())); | 2153 i::Factory::CopyMapDropTransitions(i::Handle<i::Map>(obj->map())); |
| 2154 new_map->set_is_access_check_needed(true); | 2154 new_map->set_is_access_check_needed(true); |
| 2155 obj->set_map(*new_map); | 2155 obj->set_map(*new_map); |
| 2156 } | 2156 } |
| 2157 | 2157 |
| 2158 | 2158 |
| 2159 bool v8::Object::IsDirty() { |
| 2160 return Utils::OpenHandle(this)->IsDirty(); |
| 2161 } |
| 2162 |
| 2163 |
| 2159 Local<v8::Object> v8::Object::Clone() { | 2164 Local<v8::Object> v8::Object::Clone() { |
| 2160 ON_BAILOUT("v8::Object::Clone()", return Local<Object>()); | 2165 ON_BAILOUT("v8::Object::Clone()", return Local<Object>()); |
| 2161 ENTER_V8; | 2166 ENTER_V8; |
| 2162 i::Handle<i::JSObject> self = Utils::OpenHandle(this); | 2167 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
| 2163 EXCEPTION_PREAMBLE(); | 2168 EXCEPTION_PREAMBLE(); |
| 2164 i::Handle<i::JSObject> result = i::Copy(self); | 2169 i::Handle<i::JSObject> result = i::Copy(self); |
| 2165 has_pending_exception = result.is_null(); | 2170 has_pending_exception = result.is_null(); |
| 2166 EXCEPTION_BAILOUT_CHECK(Local<Object>()); | 2171 EXCEPTION_BAILOUT_CHECK(Local<Object>()); |
| 2167 return Utils::ToLocal(result); | 2172 return Utils::ToLocal(result); |
| 2168 } | 2173 } |
| (...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3726 | 3731 |
| 3727 | 3732 |
| 3728 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 3733 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 3729 HandleScopeImplementer* thread_local = | 3734 HandleScopeImplementer* thread_local = |
| 3730 reinterpret_cast<HandleScopeImplementer*>(storage); | 3735 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 3731 thread_local->IterateThis(v); | 3736 thread_local->IterateThis(v); |
| 3732 return storage + ArchiveSpacePerThread(); | 3737 return storage + ArchiveSpacePerThread(); |
| 3733 } | 3738 } |
| 3734 | 3739 |
| 3735 } } // namespace v8::internal | 3740 } } // namespace v8::internal |
| OLD | NEW |