Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/api.cc

Issue 7395012: Introduce a random entropy source which can optionally be provided at initialization. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3915 matching lines...) Expand 10 before | Expand all | Expand 10 after
3926 3926
3927 bool v8::V8::Initialize() { 3927 bool v8::V8::Initialize() {
3928 i::Isolate* isolate = i::Isolate::UncheckedCurrent(); 3928 i::Isolate* isolate = i::Isolate::UncheckedCurrent();
3929 if (isolate != NULL && isolate->IsInitialized()) { 3929 if (isolate != NULL && isolate->IsInitialized()) {
3930 return true; 3930 return true;
3931 } 3931 }
3932 return InitializeHelper(); 3932 return InitializeHelper();
3933 } 3933 }
3934 3934
3935 3935
3936 void v8::V8::SetEntropySource(EntropySource source) {
3937 i::V8::SetEntropySource(source);
3938 }
3939
3940
3936 bool v8::V8::Dispose() { 3941 bool v8::V8::Dispose() {
3937 i::Isolate* isolate = i::Isolate::Current(); 3942 i::Isolate* isolate = i::Isolate::Current();
3938 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), 3943 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(),
3939 "v8::V8::Dispose()", 3944 "v8::V8::Dispose()",
3940 "Use v8::Isolate::Dispose() for a non-default isolate.")) { 3945 "Use v8::Isolate::Dispose() for a non-default isolate.")) {
3941 return false; 3946 return false;
3942 } 3947 }
3943 i::V8::TearDown(); 3948 i::V8::TearDown();
3944 return true; 3949 return true;
3945 } 3950 }
(...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
6040 6045
6041 6046
6042 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6047 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6043 HandleScopeImplementer* scope_implementer = 6048 HandleScopeImplementer* scope_implementer =
6044 reinterpret_cast<HandleScopeImplementer*>(storage); 6049 reinterpret_cast<HandleScopeImplementer*>(storage);
6045 scope_implementer->IterateThis(v); 6050 scope_implementer->IterateThis(v);
6046 return storage + ArchiveSpacePerThread(); 6051 return storage + ArchiveSpacePerThread();
6047 } 6052 }
6048 6053
6049 } } // namespace v8::internal 6054 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698