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

Side by Side Diff: src/api.cc

Issue 10020032: Fix external allocated memory accounting to use 64 bit values on (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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 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 5190 matching lines...) Expand 10 before | Expand all | Expand 10 after
5201 size_t length) { 5201 size_t length) {
5202 i::Isolate* isolate = i::Isolate::Current(); 5202 i::Isolate* isolate = i::Isolate::Current();
5203 if (IsDeadCheck(isolate, "v8::V8::AddImplicitReferences()")) return; 5203 if (IsDeadCheck(isolate, "v8::V8::AddImplicitReferences()")) return;
5204 STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**)); 5204 STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**));
5205 isolate->global_handles()->AddImplicitReferences( 5205 isolate->global_handles()->AddImplicitReferences(
5206 i::Handle<i::HeapObject>::cast(Utils::OpenHandle(*parent)).location(), 5206 i::Handle<i::HeapObject>::cast(Utils::OpenHandle(*parent)).location(),
5207 reinterpret_cast<i::Object***>(children), length); 5207 reinterpret_cast<i::Object***>(children), length);
5208 } 5208 }
5209 5209
5210 5210
5211 int V8::AdjustAmountOfExternalAllocatedMemory(int change_in_bytes) { 5211 intptr_t V8::AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes) {
5212 i::Isolate* isolate = i::Isolate::Current(); 5212 i::Isolate* isolate = i::Isolate::Current();
5213 if (IsDeadCheck(isolate, "v8::V8::AdjustAmountOfExternalAllocatedMemory()")) { 5213 if (IsDeadCheck(isolate, "v8::V8::AdjustAmountOfExternalAllocatedMemory()")) {
5214 return 0; 5214 return 0;
5215 } 5215 }
5216 return isolate->heap()->AdjustAmountOfExternalAllocatedMemory( 5216 return isolate->heap()->AdjustAmountOfExternalAllocatedMemory(
5217 change_in_bytes); 5217 change_in_bytes);
5218 } 5218 }
5219 5219
5220 5220
5221 void V8::SetGlobalGCPrologueCallback(GCCallback callback) { 5221 void V8::SetGlobalGCPrologueCallback(GCCallback callback) {
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
6379 6379
6380 6380
6381 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6381 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6382 HandleScopeImplementer* scope_implementer = 6382 HandleScopeImplementer* scope_implementer =
6383 reinterpret_cast<HandleScopeImplementer*>(storage); 6383 reinterpret_cast<HandleScopeImplementer*>(storage);
6384 scope_implementer->IterateThis(v); 6384 scope_implementer->IterateThis(v);
6385 return storage + ArchiveSpacePerThread(); 6385 return storage + ArchiveSpacePerThread();
6386 } 6386 }
6387 6387
6388 } } // namespace v8::internal 6388 } } // 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