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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 Handle<FixedArray> storage = | 760 Handle<FixedArray> storage = |
761 isolate->factory()->NewFixedArray(next_enumeration); | 761 isolate->factory()->NewFixedArray(next_enumeration); |
762 | 762 |
763 storage = Handle<FixedArray>(dictionary->CopyEnumKeysTo(*storage)); | 763 storage = Handle<FixedArray>(dictionary->CopyEnumKeysTo(*storage)); |
764 ASSERT(storage->length() == object->NumberOfLocalProperties(DONT_SHOW)); | 764 ASSERT(storage->length() == object->NumberOfLocalProperties(DONT_SHOW)); |
765 return storage; | 765 return storage; |
766 } | 766 } |
767 } | 767 } |
768 | 768 |
769 | 769 |
770 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, | |
771 Handle<Object> key) { | |
772 CALL_HEAP_FUNCTION(table->GetIsolate(), | |
773 table->Add(*key), | |
774 ObjectHashSet); | |
775 } | |
776 | |
777 | |
778 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, | |
779 Handle<Object> key) { | |
780 CALL_HEAP_FUNCTION(table->GetIsolate(), | |
781 table->Remove(*key), | |
782 ObjectHashSet); | |
783 } | |
784 | |
785 | |
786 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | 770 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, |
787 Handle<Object> key, | 771 Handle<Object> key, |
788 Handle<Object> value) { | 772 Handle<Object> value) { |
789 CALL_HEAP_FUNCTION(table->GetIsolate(), | 773 CALL_HEAP_FUNCTION(table->GetIsolate(), |
790 table->Put(*key, *value), | 774 table->Put(*key, *value), |
791 ObjectHashTable); | 775 ObjectHashTable); |
792 } | 776 } |
793 | 777 |
794 | 778 |
795 DeferredHandleScope::DeferredHandleScope(Isolate* isolate) | 779 DeferredHandleScope::DeferredHandleScope(Isolate* isolate) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 Handle<Code> code) { | 822 Handle<Code> code) { |
839 heap->EnsureWeakObjectToCodeTable(); | 823 heap->EnsureWeakObjectToCodeTable(); |
840 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); | 824 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); |
841 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); | 825 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); |
842 CALL_HEAP_FUNCTION_VOID(heap->isolate(), | 826 CALL_HEAP_FUNCTION_VOID(heap->isolate(), |
843 heap->AddWeakObjectToCodeDependency(*object, *dep)); | 827 heap->AddWeakObjectToCodeDependency(*object, *dep)); |
844 } | 828 } |
845 | 829 |
846 | 830 |
847 } } // namespace v8::internal | 831 } } // namespace v8::internal |
OLD | NEW |