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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 } | 846 } |
847 | 847 |
848 | 848 |
849 void FunctionTemplate::SetHiddenPrototype(bool value) { | 849 void FunctionTemplate::SetHiddenPrototype(bool value) { |
850 if (IsDeadCheck("v8::FunctionTemplate::SetHiddenPrototype()")) return; | 850 if (IsDeadCheck("v8::FunctionTemplate::SetHiddenPrototype()")) return; |
851 ENTER_V8; | 851 ENTER_V8; |
852 Utils::OpenHandle(this)->set_hidden_prototype(value); | 852 Utils::OpenHandle(this)->set_hidden_prototype(value); |
853 } | 853 } |
854 | 854 |
855 | 855 |
856 void FunctionTemplate::SetNamedInstancePropertyHandlerImpl( | 856 void FunctionTemplate::SetNamedInstancePropertyHandler( |
857 NamedPropertyGetter getter, | 857 NamedPropertyGetter getter, |
858 NamedPropertySetter setter, | 858 NamedPropertySetter setter, |
859 NamedPropertyQueryImpl query, | 859 NamedPropertyQuery query, |
860 NamedPropertyDeleter remover, | 860 NamedPropertyDeleter remover, |
861 NamedPropertyEnumerator enumerator, | 861 NamedPropertyEnumerator enumerator, |
862 Handle<Value> data) { | 862 Handle<Value> data) { |
863 if (IsDeadCheck("v8::FunctionTemplate::SetNamedInstancePropertyHandler()")) { | 863 if (IsDeadCheck("v8::FunctionTemplate::SetNamedInstancePropertyHandler()")) { |
864 return; | 864 return; |
865 } | 865 } |
866 ENTER_V8; | 866 ENTER_V8; |
867 HandleScope scope; | 867 HandleScope scope; |
868 i::Handle<i::Struct> struct_obj = | 868 i::Handle<i::Struct> struct_obj = |
869 i::Factory::NewStruct(i::INTERCEPTOR_INFO_TYPE); | 869 i::Factory::NewStruct(i::INTERCEPTOR_INFO_TYPE); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 i::Handle<i::FunctionTemplateInfo> cons(constructor); | 980 i::Handle<i::FunctionTemplateInfo> cons(constructor); |
981 Utils::ToLocal(cons)->AddInstancePropertyAccessor(name, | 981 Utils::ToLocal(cons)->AddInstancePropertyAccessor(name, |
982 getter, | 982 getter, |
983 setter, | 983 setter, |
984 data, | 984 data, |
985 settings, | 985 settings, |
986 attribute); | 986 attribute); |
987 } | 987 } |
988 | 988 |
989 | 989 |
990 void ObjectTemplate::SetNamedPropertyHandlerImpl(NamedPropertyGetter getter, | 990 void ObjectTemplate::SetNamedPropertyHandler(NamedPropertyGetter getter, |
991 NamedPropertySetter setter, | 991 NamedPropertySetter setter, |
992 NamedPropertyQueryImpl query, | 992 NamedPropertyQuery query, |
993 NamedPropertyDeleter remover, | 993 NamedPropertyDeleter remover, |
994 NamedPropertyEnumerator | 994 NamedPropertyEnumerator enumerator, |
995 enumerator, | 995 Handle<Value> data) { |
996 Handle<Value> data) { | |
997 if (IsDeadCheck("v8::ObjectTemplate::SetNamedPropertyHandler()")) return; | 996 if (IsDeadCheck("v8::ObjectTemplate::SetNamedPropertyHandler()")) return; |
998 ENTER_V8; | 997 ENTER_V8; |
999 HandleScope scope; | 998 HandleScope scope; |
1000 EnsureConstructor(this); | 999 EnsureConstructor(this); |
1001 i::FunctionTemplateInfo* constructor = | 1000 i::FunctionTemplateInfo* constructor = |
1002 i::FunctionTemplateInfo::cast(Utils::OpenHandle(this)->constructor()); | 1001 i::FunctionTemplateInfo::cast(Utils::OpenHandle(this)->constructor()); |
1003 i::Handle<i::FunctionTemplateInfo> cons(constructor); | 1002 i::Handle<i::FunctionTemplateInfo> cons(constructor); |
1004 Utils::ToLocal(cons)->SetNamedInstancePropertyHandlerImpl(getter, | 1003 Utils::ToLocal(cons)->SetNamedInstancePropertyHandler(getter, |
1005 setter, | 1004 setter, |
1006 query, | 1005 query, |
1007 remover, | 1006 remover, |
1008 enumerator, | 1007 enumerator, |
1009 data); | 1008 data); |
1010 } | 1009 } |
1011 | 1010 |
1012 | 1011 |
1013 void ObjectTemplate::MarkAsUndetectable() { | 1012 void ObjectTemplate::MarkAsUndetectable() { |
1014 if (IsDeadCheck("v8::ObjectTemplate::MarkAsUndetectable()")) return; | 1013 if (IsDeadCheck("v8::ObjectTemplate::MarkAsUndetectable()")) return; |
1015 ENTER_V8; | 1014 ENTER_V8; |
1016 HandleScope scope; | 1015 HandleScope scope; |
1017 EnsureConstructor(this); | 1016 EnsureConstructor(this); |
1018 i::FunctionTemplateInfo* constructor = | 1017 i::FunctionTemplateInfo* constructor = |
1019 i::FunctionTemplateInfo::cast(Utils::OpenHandle(this)->constructor()); | 1018 i::FunctionTemplateInfo::cast(Utils::OpenHandle(this)->constructor()); |
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4442 | 4441 |
4443 | 4442 |
4444 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4443 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4445 HandleScopeImplementer* thread_local = | 4444 HandleScopeImplementer* thread_local = |
4446 reinterpret_cast<HandleScopeImplementer*>(storage); | 4445 reinterpret_cast<HandleScopeImplementer*>(storage); |
4447 thread_local->IterateThis(v); | 4446 thread_local->IterateThis(v); |
4448 return storage + ArchiveSpacePerThread(); | 4447 return storage + ArchiveSpacePerThread(); |
4449 } | 4448 } |
4450 | 4449 |
4451 } } // namespace v8::internal | 4450 } } // namespace v8::internal |
OLD | NEW |