OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |