| 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 3032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3043 if (!proxy.is_null()) | 3043 if (!proxy.is_null()) |
| 3044 Utils::OpenHandle(this)->SetInternalField(index, *proxy); | 3044 Utils::OpenHandle(this)->SetInternalField(index, *proxy); |
| 3045 } | 3045 } |
| 3046 | 3046 |
| 3047 | 3047 |
| 3048 // --- E n v i r o n m e n t --- | 3048 // --- E n v i r o n m e n t --- |
| 3049 | 3049 |
| 3050 bool v8::V8::Initialize() { | 3050 bool v8::V8::Initialize() { |
| 3051 if (i::V8::IsRunning()) return true; | 3051 if (i::V8::IsRunning()) return true; |
| 3052 ENTER_V8; | 3052 ENTER_V8; |
| 3053 if(i::Snapshot::Initialize()) return true; | 3053 if (i::Snapshot::Initialize()) return true; |
| 3054 return i::V8::Initialize(NULL); | 3054 return i::V8::Initialize(NULL); |
| 3055 } | 3055 } |
| 3056 | 3056 |
| 3057 | 3057 |
| 3058 bool v8::V8::Dispose() { | 3058 bool v8::V8::Dispose() { |
| 3059 i::V8::TearDown(); | 3059 i::V8::TearDown(); |
| 3060 return true; | 3060 return true; |
| 3061 } | 3061 } |
| 3062 | 3062 |
| 3063 | 3063 |
| (...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4433 | 4433 |
| 4434 | 4434 |
| 4435 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4435 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 4436 HandleScopeImplementer* thread_local = | 4436 HandleScopeImplementer* thread_local = |
| 4437 reinterpret_cast<HandleScopeImplementer*>(storage); | 4437 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 4438 thread_local->IterateThis(v); | 4438 thread_local->IterateThis(v); |
| 4439 return storage + ArchiveSpacePerThread(); | 4439 return storage + ArchiveSpacePerThread(); |
| 4440 } | 4440 } |
| 4441 | 4441 |
| 4442 } } // namespace v8::internal | 4442 } } // namespace v8::internal |
| OLD | NEW |