| 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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 873   } else { | 873   } else { | 
| 874     int num_enum = object->NumberOfEnumProperties(); | 874     int num_enum = object->NumberOfEnumProperties(); | 
| 875     Handle<FixedArray> storage = isolate->factory()->NewFixedArray(num_enum); | 875     Handle<FixedArray> storage = isolate->factory()->NewFixedArray(num_enum); | 
| 876     Handle<FixedArray> sort_array = isolate->factory()->NewFixedArray(num_enum); | 876     Handle<FixedArray> sort_array = isolate->factory()->NewFixedArray(num_enum); | 
| 877     object->property_dictionary()->CopyEnumKeysTo(*storage, *sort_array); | 877     object->property_dictionary()->CopyEnumKeysTo(*storage, *sort_array); | 
| 878     return storage; | 878     return storage; | 
| 879   } | 879   } | 
| 880 } | 880 } | 
| 881 | 881 | 
| 882 | 882 | 
|  | 883 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, | 
|  | 884                                        Handle<Object> key) { | 
|  | 885   CALL_HEAP_FUNCTION(table->GetIsolate(), | 
|  | 886                      table->Add(*key), | 
|  | 887                      ObjectHashSet); | 
|  | 888 } | 
|  | 889 | 
|  | 890 | 
|  | 891 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, | 
|  | 892                                           Handle<Object> key) { | 
|  | 893   CALL_HEAP_FUNCTION(table->GetIsolate(), | 
|  | 894                      table->Remove(*key), | 
|  | 895                      ObjectHashSet); | 
|  | 896 } | 
|  | 897 | 
|  | 898 | 
| 883 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | 899 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | 
| 884                                                Handle<JSReceiver> key, | 900                                                Handle<Object> key, | 
| 885                                                Handle<Object> value) { | 901                                                Handle<Object> value) { | 
| 886   CALL_HEAP_FUNCTION(table->GetIsolate(), | 902   CALL_HEAP_FUNCTION(table->GetIsolate(), | 
| 887                      table->Put(*key, *value), | 903                      table->Put(*key, *value), | 
| 888                      ObjectHashTable); | 904                      ObjectHashTable); | 
| 889 } | 905 } | 
| 890 | 906 | 
| 891 | 907 | 
| 892 } }  // namespace v8::internal | 908 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|