OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2186 if (i::Snapshot::Initialize()) { | 2186 if (i::Snapshot::Initialize()) { |
2187 i::Serializer::disable(); | 2187 i::Serializer::disable(); |
2188 return true; | 2188 return true; |
2189 } else { | 2189 } else { |
2190 return i::V8::Initialize(NULL); | 2190 return i::V8::Initialize(NULL); |
2191 } | 2191 } |
2192 } | 2192 } |
2193 | 2193 |
2194 | 2194 |
2195 const char* v8::V8::GetVersion() { | 2195 const char* v8::V8::GetVersion() { |
2196 return "0.4.0 (internal)"; | 2196 return "0.4.1 (candidate)"; |
2197 } | 2197 } |
2198 | 2198 |
2199 | 2199 |
2200 static i::Handle<i::FunctionTemplateInfo> | 2200 static i::Handle<i::FunctionTemplateInfo> |
2201 EnsureConstructor(i::Handle<i::ObjectTemplateInfo> templ) { | 2201 EnsureConstructor(i::Handle<i::ObjectTemplateInfo> templ) { |
2202 if (templ->constructor()->IsUndefined()) { | 2202 if (templ->constructor()->IsUndefined()) { |
2203 Local<FunctionTemplate> constructor = FunctionTemplate::New(); | 2203 Local<FunctionTemplate> constructor = FunctionTemplate::New(); |
2204 Utils::OpenHandle(*constructor)->set_instance_template(*templ); | 2204 Utils::OpenHandle(*constructor)->set_instance_template(*templ); |
2205 templ->set_constructor(*Utils::OpenHandle(*constructor)); | 2205 templ->set_constructor(*Utils::OpenHandle(*constructor)); |
2206 } | 2206 } |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2957 reinterpret_cast<HandleScopeImplementer*>(storage); | 2957 reinterpret_cast<HandleScopeImplementer*>(storage); |
2958 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 2958 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
2959 ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 2959 ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
2960 &thread_local->handle_scope_data_; | 2960 &thread_local->handle_scope_data_; |
2961 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 2961 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
2962 | 2962 |
2963 return storage + ArchiveSpacePerThread(); | 2963 return storage + ArchiveSpacePerThread(); |
2964 } | 2964 } |
2965 | 2965 |
2966 } } // namespace v8::internal | 2966 } } // namespace v8::internal |
OLD | NEW |