OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4019 } | 4019 } |
4020 return InitializeHelper(); | 4020 return InitializeHelper(); |
4021 } | 4021 } |
4022 | 4022 |
4023 | 4023 |
4024 void v8::V8::SetEntropySource(EntropySource source) { | 4024 void v8::V8::SetEntropySource(EntropySource source) { |
4025 i::V8::SetEntropySource(source); | 4025 i::V8::SetEntropySource(source); |
4026 } | 4026 } |
4027 | 4027 |
4028 | 4028 |
| 4029 void v8::V8::SetReturnAddressLocationResolver( |
| 4030 ReturnAddressLocationResolver return_address_resolver) { |
| 4031 i::V8::SetReturnAddressLocationResolver(return_address_resolver); |
| 4032 } |
| 4033 |
| 4034 |
4029 bool v8::V8::Dispose() { | 4035 bool v8::V8::Dispose() { |
4030 i::Isolate* isolate = i::Isolate::Current(); | 4036 i::Isolate* isolate = i::Isolate::Current(); |
4031 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), | 4037 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), |
4032 "v8::V8::Dispose()", | 4038 "v8::V8::Dispose()", |
4033 "Use v8::Isolate::Dispose() for a non-default isolate.")) { | 4039 "Use v8::Isolate::Dispose() for a non-default isolate.")) { |
4034 return false; | 4040 return false; |
4035 } | 4041 } |
4036 i::V8::TearDown(); | 4042 i::V8::TearDown(); |
4037 return true; | 4043 return true; |
4038 } | 4044 } |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6188 | 6194 |
6189 | 6195 |
6190 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6196 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6191 HandleScopeImplementer* scope_implementer = | 6197 HandleScopeImplementer* scope_implementer = |
6192 reinterpret_cast<HandleScopeImplementer*>(storage); | 6198 reinterpret_cast<HandleScopeImplementer*>(storage); |
6193 scope_implementer->IterateThis(v); | 6199 scope_implementer->IterateThis(v); |
6194 return storage + ArchiveSpacePerThread(); | 6200 return storage + ArchiveSpacePerThread(); |
6195 } | 6201 } |
6196 | 6202 |
6197 } } // namespace v8::internal | 6203 } } // namespace v8::internal |
OLD | NEW |