| 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 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2415 } | 2415 } |
| 2416 | 2416 |
| 2417 | 2417 |
| 2418 bool v8::V8::Dispose() { | 2418 bool v8::V8::Dispose() { |
| 2419 i::V8::TearDown(); | 2419 i::V8::TearDown(); |
| 2420 return true; | 2420 return true; |
| 2421 } | 2421 } |
| 2422 | 2422 |
| 2423 | 2423 |
| 2424 const char* v8::V8::GetVersion() { | 2424 const char* v8::V8::GetVersion() { |
| 2425 return "1.1.11 (candidate)"; | 2425 return "1.2.1 (candidate)"; |
| 2426 } | 2426 } |
| 2427 | 2427 |
| 2428 | 2428 |
| 2429 static i::Handle<i::FunctionTemplateInfo> | 2429 static i::Handle<i::FunctionTemplateInfo> |
| 2430 EnsureConstructor(i::Handle<i::ObjectTemplateInfo> templ) { | 2430 EnsureConstructor(i::Handle<i::ObjectTemplateInfo> templ) { |
| 2431 if (templ->constructor()->IsUndefined()) { | 2431 if (templ->constructor()->IsUndefined()) { |
| 2432 Local<FunctionTemplate> constructor = FunctionTemplate::New(); | 2432 Local<FunctionTemplate> constructor = FunctionTemplate::New(); |
| 2433 Utils::OpenHandle(*constructor)->set_instance_template(*templ); | 2433 Utils::OpenHandle(*constructor)->set_instance_template(*templ); |
| 2434 templ->set_constructor(*Utils::OpenHandle(*constructor)); | 2434 templ->set_constructor(*Utils::OpenHandle(*constructor)); |
| 2435 } | 2435 } |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3384 reinterpret_cast<HandleScopeImplementer*>(storage); | 3384 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 3385 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3385 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
| 3386 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3386 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
| 3387 &thread_local->handle_scope_data_; | 3387 &thread_local->handle_scope_data_; |
| 3388 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3388 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
| 3389 | 3389 |
| 3390 return storage + ArchiveSpacePerThread(); | 3390 return storage + ArchiveSpacePerThread(); |
| 3391 } | 3391 } |
| 3392 | 3392 |
| 3393 } } // namespace v8::internal | 3393 } } // namespace v8::internal |
| OLD | NEW |