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

Side by Side Diff: src/api.cc

Issue 669266: Let the callers of V8::ContextDisposedNoticication() know... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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 | « include/v8.h ('k') | src/heap.h » ('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 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 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 return i::V8::IdleNotification(); 2865 return i::V8::IdleNotification();
2866 } 2866 }
2867 2867
2868 2868
2869 void v8::V8::LowMemoryNotification() { 2869 void v8::V8::LowMemoryNotification() {
2870 if (!i::V8::IsRunning()) return; 2870 if (!i::V8::IsRunning()) return;
2871 i::Heap::CollectAllGarbage(true); 2871 i::Heap::CollectAllGarbage(true);
2872 } 2872 }
2873 2873
2874 2874
2875 void v8::V8::ContextDisposedNotification() { 2875 int v8::V8::ContextDisposedNotification() {
2876 if (!i::V8::IsRunning()) return; 2876 if (!i::V8::IsRunning()) return 0;
2877 i::Heap::NotifyContextDisposed(); 2877 return i::Heap::NotifyContextDisposed();
2878 } 2878 }
2879 2879
2880 2880
2881 const char* v8::V8::GetVersion() { 2881 const char* v8::V8::GetVersion() {
2882 static v8::internal::EmbeddedVector<char, 128> buffer; 2882 static v8::internal::EmbeddedVector<char, 128> buffer;
2883 v8::internal::Version::GetString(buffer); 2883 v8::internal::Version::GetString(buffer);
2884 return buffer.start(); 2884 return buffer.start();
2885 } 2885 }
2886 2886
2887 2887
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3997 3997
3998 3998
3999 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 3999 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
4000 HandleScopeImplementer* thread_local = 4000 HandleScopeImplementer* thread_local =
4001 reinterpret_cast<HandleScopeImplementer*>(storage); 4001 reinterpret_cast<HandleScopeImplementer*>(storage);
4002 thread_local->IterateThis(v); 4002 thread_local->IterateThis(v);
4003 return storage + ArchiveSpacePerThread(); 4003 return storage + ArchiveSpacePerThread();
4004 } 4004 }
4005 4005
4006 } } // namespace v8::internal 4006 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698