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

Side by Side Diff: src/api.cc

Issue 9605008: Merge 10601,10602,10616,10625,10647 from the bleeding edge to the 3.8 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.8/
Patch Set: Created 8 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 | « no previous file | src/debug.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 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 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after
4070 // continue to call IdleNotification. 4070 // continue to call IdleNotification.
4071 i::Isolate* isolate = i::Isolate::Current(); 4071 i::Isolate* isolate = i::Isolate::Current();
4072 if (isolate == NULL || !isolate->IsInitialized()) return true; 4072 if (isolate == NULL || !isolate->IsInitialized()) return true;
4073 return i::V8::IdleNotification(hint); 4073 return i::V8::IdleNotification(hint);
4074 } 4074 }
4075 4075
4076 4076
4077 void v8::V8::LowMemoryNotification() { 4077 void v8::V8::LowMemoryNotification() {
4078 i::Isolate* isolate = i::Isolate::Current(); 4078 i::Isolate* isolate = i::Isolate::Current();
4079 if (isolate == NULL || !isolate->IsInitialized()) return; 4079 if (isolate == NULL || !isolate->IsInitialized()) return;
4080 isolate->heap()->CollectAllAvailableGarbage(); 4080 isolate->heap()->CollectAllAvailableGarbage("low memory notification");
4081 } 4081 }
4082 4082
4083 4083
4084 int v8::V8::ContextDisposedNotification() { 4084 int v8::V8::ContextDisposedNotification() {
4085 i::Isolate* isolate = i::Isolate::Current(); 4085 i::Isolate* isolate = i::Isolate::Current();
4086 if (!isolate->IsInitialized()) return 0; 4086 if (!isolate->IsInitialized()) return 0;
4087 return isolate->heap()->NotifyContextDisposed(); 4087 return isolate->heap()->NotifyContextDisposed();
4088 } 4088 }
4089 4089
4090 4090
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
6174 6174
6175 6175
6176 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6176 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6177 HandleScopeImplementer* scope_implementer = 6177 HandleScopeImplementer* scope_implementer =
6178 reinterpret_cast<HandleScopeImplementer*>(storage); 6178 reinterpret_cast<HandleScopeImplementer*>(storage);
6179 scope_implementer->IterateThis(v); 6179 scope_implementer->IterateThis(v);
6180 return storage + ArchiveSpacePerThread(); 6180 return storage + ArchiveSpacePerThread();
6181 } 6181 }
6182 6182
6183 } } // namespace v8::internal 6183 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698