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

Side by Side Diff: src/api.cc

Issue 8162014: Moved random generator state to global context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after
4066 ASSERT(!proxy_constructor.is_null()); 4066 ASSERT(!proxy_constructor.is_null());
4067 global_constructor->set_access_check_info( 4067 global_constructor->set_access_check_info(
4068 proxy_constructor->access_check_info()); 4068 proxy_constructor->access_check_info());
4069 global_constructor->set_needs_access_check( 4069 global_constructor->set_needs_access_check(
4070 proxy_constructor->needs_access_check()); 4070 proxy_constructor->needs_access_check());
4071 } 4071 }
4072 isolate->runtime_profiler()->Reset(); 4072 isolate->runtime_profiler()->Reset();
4073 } 4073 }
4074 // Leave V8. 4074 // Leave V8.
4075 4075
4076 if (env.is_null()) 4076 if (env.is_null()) {
4077 return Persistent<Context>(); 4077 return Persistent<Context>();
4078 }
4078 return Persistent<Context>(Utils::ToLocal(env)); 4079 return Persistent<Context>(Utils::ToLocal(env));
4079 } 4080 }
4080 4081
4081 4082
4082 void v8::Context::SetSecurityToken(Handle<Value> token) { 4083 void v8::Context::SetSecurityToken(Handle<Value> token) {
4083 i::Isolate* isolate = i::Isolate::Current(); 4084 i::Isolate* isolate = i::Isolate::Current();
4084 if (IsDeadCheck(isolate, "v8::Context::SetSecurityToken()")) { 4085 if (IsDeadCheck(isolate, "v8::Context::SetSecurityToken()")) {
4085 return; 4086 return;
4086 } 4087 }
4087 ENTER_V8(isolate); 4088 ENTER_V8(isolate);
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
6062 6063
6063 6064
6064 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6065 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6065 HandleScopeImplementer* scope_implementer = 6066 HandleScopeImplementer* scope_implementer =
6066 reinterpret_cast<HandleScopeImplementer*>(storage); 6067 reinterpret_cast<HandleScopeImplementer*>(storage);
6067 scope_implementer->IterateThis(v); 6068 scope_implementer->IterateThis(v);
6068 return storage + ArchiveSpacePerThread(); 6069 return storage + ArchiveSpacePerThread();
6069 } 6070 }
6070 6071
6071 } } // namespace v8::internal 6072 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698