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

Side by Side Diff: src/api.cc

Issue 7003108: "Deiceolate" Thread classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 4884 matching lines...) Expand 10 before | Expand all | Expand 10 after
4895 void V8::TerminateExecution(Isolate* isolate) { 4895 void V8::TerminateExecution(Isolate* isolate) {
4896 // If no isolate is supplied, use the default isolate. 4896 // If no isolate is supplied, use the default isolate.
4897 if (isolate != NULL) { 4897 if (isolate != NULL) {
4898 reinterpret_cast<i::Isolate*>(isolate)->stack_guard()->TerminateExecution(); 4898 reinterpret_cast<i::Isolate*>(isolate)->stack_guard()->TerminateExecution();
4899 } else { 4899 } else {
4900 i::Isolate::GetDefaultIsolateStackGuard()->TerminateExecution(); 4900 i::Isolate::GetDefaultIsolateStackGuard()->TerminateExecution();
4901 } 4901 }
4902 } 4902 }
4903 4903
4904 4904
4905 bool V8::IsExecutionTerminating() { 4905 bool V8::IsExecutionTerminating(Isolate* isolate) {
4906 i::Isolate* isolate = i::Isolate::Current(); 4906 i::Isolate* i_isolate = isolate != NULL ?
4907 return IsExecutionTerminatingCheck(isolate); 4907 reinterpret_cast<i::Isolate*>(isolate) : i::Isolate::Current();
4908 return IsExecutionTerminatingCheck(i_isolate);
4908 } 4909 }
4909 4910
4910 4911
4911 Isolate* Isolate::GetCurrent() { 4912 Isolate* Isolate::GetCurrent() {
4912 i::Isolate* isolate = i::Isolate::UncheckedCurrent(); 4913 i::Isolate* isolate = i::Isolate::UncheckedCurrent();
4913 return reinterpret_cast<Isolate*>(isolate); 4914 return reinterpret_cast<Isolate*>(isolate);
4914 } 4915 }
4915 4916
4916 4917
4917 Isolate* Isolate::New() { 4918 Isolate* Isolate::New() {
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
6093 6094
6094 6095
6095 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6096 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6096 HandleScopeImplementer* scope_implementer = 6097 HandleScopeImplementer* scope_implementer =
6097 reinterpret_cast<HandleScopeImplementer*>(storage); 6098 reinterpret_cast<HandleScopeImplementer*>(storage);
6098 scope_implementer->IterateThis(v); 6099 scope_implementer->IterateThis(v);
6099 return storage + ArchiveSpacePerThread(); 6100 return storage + ArchiveSpacePerThread();
6100 } 6101 }
6101 6102
6102 } } // namespace v8::internal 6103 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698