| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 } | 532 } |
| 533 | 533 |
| 534 | 534 |
| 535 void V8::ClearWeak(i::Object** obj) { | 535 void V8::ClearWeak(i::Object** obj) { |
| 536 i::Isolate* isolate = i::Isolate::Current(); | 536 i::Isolate* isolate = i::Isolate::Current(); |
| 537 LOG_API(isolate, "ClearWeak"); | 537 LOG_API(isolate, "ClearWeak"); |
| 538 isolate->global_handles()->ClearWeakness(obj); | 538 isolate->global_handles()->ClearWeakness(obj); |
| 539 } | 539 } |
| 540 | 540 |
| 541 | 541 |
| 542 void V8::MarkIndependent(i::Object** object) { |
| 543 i::Isolate* isolate = i::Isolate::Current(); |
| 544 LOG_API(isolate, "MakeIndependent"); |
| 545 isolate->global_handles()->MarkIndependent(object); |
| 546 } |
| 547 |
| 548 |
| 542 bool V8::IsGlobalNearDeath(i::Object** obj) { | 549 bool V8::IsGlobalNearDeath(i::Object** obj) { |
| 543 i::Isolate* isolate = i::Isolate::Current(); | 550 i::Isolate* isolate = i::Isolate::Current(); |
| 544 LOG_API(isolate, "IsGlobalNearDeath"); | 551 LOG_API(isolate, "IsGlobalNearDeath"); |
| 545 if (!isolate->IsInitialized()) return false; | 552 if (!isolate->IsInitialized()) return false; |
| 546 return i::GlobalHandles::IsNearDeath(obj); | 553 return i::GlobalHandles::IsNearDeath(obj); |
| 547 } | 554 } |
| 548 | 555 |
| 549 | 556 |
| 550 bool V8::IsGlobalWeak(i::Object** obj) { | 557 bool V8::IsGlobalWeak(i::Object** obj) { |
| 551 i::Isolate* isolate = i::Isolate::Current(); | 558 i::Isolate* isolate = i::Isolate::Current(); |
| (...skipping 5266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5818 | 5825 |
| 5819 | 5826 |
| 5820 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 5827 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 5821 HandleScopeImplementer* scope_implementer = | 5828 HandleScopeImplementer* scope_implementer = |
| 5822 reinterpret_cast<HandleScopeImplementer*>(storage); | 5829 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 5823 scope_implementer->IterateThis(v); | 5830 scope_implementer->IterateThis(v); |
| 5824 return storage + ArchiveSpacePerThread(); | 5831 return storage + ArchiveSpacePerThread(); |
| 5825 } | 5832 } |
| 5826 | 5833 |
| 5827 } } // namespace v8::internal | 5834 } } // namespace v8::internal |
| OLD | NEW |