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 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2209 if (i::Snapshot::Initialize()) { | 2209 if (i::Snapshot::Initialize()) { |
2210 i::Serializer::disable(); | 2210 i::Serializer::disable(); |
2211 return true; | 2211 return true; |
2212 } else { | 2212 } else { |
2213 return i::V8::Initialize(NULL); | 2213 return i::V8::Initialize(NULL); |
2214 } | 2214 } |
2215 } | 2215 } |
2216 | 2216 |
2217 | 2217 |
2218 const char* v8::V8::GetVersion() { | 2218 const char* v8::V8::GetVersion() { |
2219 return "0.3.5"; | 2219 return "0.3.5.1"; |
2220 } | 2220 } |
2221 | 2221 |
2222 | 2222 |
2223 Persistent<Context> v8::Context::New(v8::ExtensionConfiguration* extensions, | 2223 Persistent<Context> v8::Context::New(v8::ExtensionConfiguration* extensions, |
2224 v8::Handle<ObjectTemplate> global_template, | 2224 v8::Handle<ObjectTemplate> global_template, |
2225 v8::Handle<Value> global_object) { | 2225 v8::Handle<Value> global_object) { |
2226 EnsureInitialized("v8::Context::New()"); | 2226 EnsureInitialized("v8::Context::New()"); |
2227 LOG_API("Context::New"); | 2227 LOG_API("Context::New"); |
2228 ON_BAILOUT("v8::Context::New()", return Persistent<Context>()); | 2228 ON_BAILOUT("v8::Context::New()", return Persistent<Context>()); |
2229 // Make sure that the global_template has a constructor. | 2229 // Make sure that the global_template has a constructor. |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2921 reinterpret_cast<HandleScopeImplementer*>(storage); | 2921 reinterpret_cast<HandleScopeImplementer*>(storage); |
2922 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 2922 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
2923 ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 2923 ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
2924 &thread_local->handle_scope_data_; | 2924 &thread_local->handle_scope_data_; |
2925 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 2925 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
2926 | 2926 |
2927 return storage + ArchiveSpacePerThread(); | 2927 return storage + ArchiveSpacePerThread(); |
2928 } | 2928 } |
2929 | 2929 |
2930 } } // namespace v8::internal | 2930 } } // namespace v8::internal |
OLD | NEW |