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 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2629 Utils::OpenHandle(this)->SetInternalField(index, *proxy); | 2629 Utils::OpenHandle(this)->SetInternalField(index, *proxy); |
2630 } | 2630 } |
2631 | 2631 |
2632 | 2632 |
2633 // --- E n v i r o n m e n t --- | 2633 // --- E n v i r o n m e n t --- |
2634 | 2634 |
2635 bool v8::V8::Initialize() { | 2635 bool v8::V8::Initialize() { |
2636 if (i::V8::IsRunning()) return true; | 2636 if (i::V8::IsRunning()) return true; |
2637 ENTER_V8; | 2637 ENTER_V8; |
2638 HandleScope scope; | 2638 HandleScope scope; |
2639 if (i::FLAG_new_snapshot) { | 2639 if (i::Snapshot::Initialize()) return true; |
2640 if (i::Snapshot::Initialize2()) return true; | |
2641 } else { | |
2642 if (i::Snapshot::Initialize()) return true; | |
2643 } | |
2644 return i::V8::Initialize(NULL); | 2640 return i::V8::Initialize(NULL); |
2645 } | 2641 } |
2646 | 2642 |
2647 | 2643 |
2648 bool v8::V8::Dispose() { | 2644 bool v8::V8::Dispose() { |
2649 i::V8::TearDown(); | 2645 i::V8::TearDown(); |
2650 return true; | 2646 return true; |
2651 } | 2647 } |
2652 | 2648 |
2653 | 2649 |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3862 | 3858 |
3863 | 3859 |
3864 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 3860 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
3865 HandleScopeImplementer* thread_local = | 3861 HandleScopeImplementer* thread_local = |
3866 reinterpret_cast<HandleScopeImplementer*>(storage); | 3862 reinterpret_cast<HandleScopeImplementer*>(storage); |
3867 thread_local->IterateThis(v); | 3863 thread_local->IterateThis(v); |
3868 return storage + ArchiveSpacePerThread(); | 3864 return storage + ArchiveSpacePerThread(); |
3869 } | 3865 } |
3870 | 3866 |
3871 } } // namespace v8::internal | 3867 } } // namespace v8::internal |
OLD | NEW |