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

Side by Side Diff: src/api.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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 | « src/accessors.cc ('k') | src/arm/assembler-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after
3269 "Use v8::Isolate::Dispose() for a non-default isolate.")) { 3269 "Use v8::Isolate::Dispose() for a non-default isolate.")) {
3270 return false; 3270 return false;
3271 } 3271 }
3272 i::V8::TearDown(); 3272 i::V8::TearDown();
3273 return true; 3273 return true;
3274 } 3274 }
3275 3275
3276 3276
3277 HeapStatistics::HeapStatistics(): total_heap_size_(0), 3277 HeapStatistics::HeapStatistics(): total_heap_size_(0),
3278 total_heap_size_executable_(0), 3278 total_heap_size_executable_(0),
3279 used_heap_size_(0) { } 3279 used_heap_size_(0),
3280 heap_size_limit_(0) { }
3280 3281
3281 3282
3282 void v8::V8::GetHeapStatistics(HeapStatistics* heap_statistics) { 3283 void v8::V8::GetHeapStatistics(HeapStatistics* heap_statistics) {
3283 heap_statistics->set_total_heap_size(HEAP->CommittedMemory()); 3284 heap_statistics->set_total_heap_size(HEAP->CommittedMemory());
3284 heap_statistics->set_total_heap_size_executable( 3285 heap_statistics->set_total_heap_size_executable(
3285 HEAP->CommittedMemoryExecutable()); 3286 HEAP->CommittedMemoryExecutable());
3286 heap_statistics->set_used_heap_size(HEAP->SizeOfObjects()); 3287 heap_statistics->set_used_heap_size(HEAP->SizeOfObjects());
3288 heap_statistics->set_heap_size_limit(HEAP->MaxReserved());
3287 } 3289 }
3288 3290
3289 3291
3290 bool v8::V8::IdleNotification() { 3292 bool v8::V8::IdleNotification() {
3291 // Returning true tells the caller that it need not 3293 // Returning true tells the caller that it need not
3292 // continue to call IdleNotification. 3294 // continue to call IdleNotification.
3293 if (!i::Isolate::Current()->IsInitialized()) return true; 3295 if (!i::Isolate::Current()->IsInitialized()) return true;
3294 return i::V8::IdleNotification(); 3296 return i::V8::IdleNotification();
3295 } 3297 }
3296 3298
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
5158 5160
5159 5161
5160 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 5162 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
5161 HandleScopeImplementer* thread_local = 5163 HandleScopeImplementer* thread_local =
5162 reinterpret_cast<HandleScopeImplementer*>(storage); 5164 reinterpret_cast<HandleScopeImplementer*>(storage);
5163 thread_local->IterateThis(v); 5165 thread_local->IterateThis(v);
5164 return storage + ArchiveSpacePerThread(); 5166 return storage + ArchiveSpacePerThread();
5165 } 5167 }
5166 5168
5167 } } // namespace v8::internal 5169 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/arm/assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698