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 11816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11827 } | 11827 } |
11828 | 11828 |
11829 | 11829 |
11830 void ObjectHashTable::AddEntry(int entry, JSObject* key, Object* value) { | 11830 void ObjectHashTable::AddEntry(int entry, JSObject* key, Object* value) { |
11831 set(EntryToIndex(entry), key); | 11831 set(EntryToIndex(entry), key); |
11832 set(EntryToIndex(entry) + 1, value); | 11832 set(EntryToIndex(entry) + 1, value); |
11833 ElementAdded(); | 11833 ElementAdded(); |
11834 } | 11834 } |
11835 | 11835 |
11836 | 11836 |
11837 void ObjectHashTable::RemoveEntry(int entry) { | 11837 void ObjectHashTable::RemoveEntry(int entry, Heap* heap) { |
11838 Object* null_value = GetHeap()->null_value(); | 11838 set_null(heap, EntryToIndex(entry)); |
11839 set(EntryToIndex(entry), null_value); | 11839 set_null(heap, EntryToIndex(entry) + 1); |
11840 set(EntryToIndex(entry) + 1, null_value); | |
11841 ElementRemoved(); | 11840 ElementRemoved(); |
11842 } | 11841 } |
11843 | 11842 |
11844 | 11843 |
11845 #ifdef ENABLE_DEBUGGER_SUPPORT | 11844 #ifdef ENABLE_DEBUGGER_SUPPORT |
11846 // Check if there is a break point at this code position. | 11845 // Check if there is a break point at this code position. |
11847 bool DebugInfo::HasBreakPoint(int code_position) { | 11846 bool DebugInfo::HasBreakPoint(int code_position) { |
11848 // Get the break point info object for this code position. | 11847 // Get the break point info object for this code position. |
11849 Object* break_point_info = GetBreakPointInfo(code_position); | 11848 Object* break_point_info = GetBreakPointInfo(code_position); |
11850 | 11849 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12089 if (break_point_objects()->IsUndefined()) return 0; | 12088 if (break_point_objects()->IsUndefined()) return 0; |
12090 // Single beak point. | 12089 // Single beak point. |
12091 if (!break_point_objects()->IsFixedArray()) return 1; | 12090 if (!break_point_objects()->IsFixedArray()) return 1; |
12092 // Multiple break points. | 12091 // Multiple break points. |
12093 return FixedArray::cast(break_point_objects())->length(); | 12092 return FixedArray::cast(break_point_objects())->length(); |
12094 } | 12093 } |
12095 #endif | 12094 #endif |
12096 | 12095 |
12097 | 12096 |
12098 } } // namespace v8::internal | 12097 } } // namespace v8::internal |
OLD | NEW |