| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 *p = first_word.ToForwardingAddress(); | 209 *p = first_word.ToForwardingAddress(); |
| 210 return; | 210 return; |
| 211 } | 211 } |
| 212 | 212 |
| 213 // Call the slow part of scavenge object. | 213 // Call the slow part of scavenge object. |
| 214 return ScavengeObjectSlow(p, object); | 214 return ScavengeObjectSlow(p, object); |
| 215 } | 215 } |
| 216 | 216 |
| 217 | 217 |
| 218 void Heap::SetLastScriptId(Object* last_script_id) { | 218 void Heap::SetLastScriptId(Object* last_script_id) { |
| 219 last_script_id_ = last_script_id; | 219 roots_[kLastScriptIdRootIndex] = last_script_id; |
| 220 } | 220 } |
| 221 | 221 |
| 222 | 222 |
| 223 #define GC_GREEDY_CHECK() \ | 223 #define GC_GREEDY_CHECK() \ |
| 224 ASSERT(!FLAG_gc_greedy || v8::internal::Heap::GarbageCollectionGreedyCheck()) | 224 ASSERT(!FLAG_gc_greedy || v8::internal::Heap::GarbageCollectionGreedyCheck()) |
| 225 | 225 |
| 226 | 226 |
| 227 // Calls the FUNCTION_CALL function and retries it up to three times | 227 // Calls the FUNCTION_CALL function and retries it up to three times |
| 228 // to guarantee that any allocations performed during the call will | 228 // to guarantee that any allocations performed during the call will |
| 229 // succeed if there's enough memory. | 229 // succeed if there's enough memory. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 allocation_allowed_ = new_state; | 281 allocation_allowed_ = new_state; |
| 282 return old; | 282 return old; |
| 283 } | 283 } |
| 284 | 284 |
| 285 #endif | 285 #endif |
| 286 | 286 |
| 287 | 287 |
| 288 } } // namespace v8::internal | 288 } } // namespace v8::internal |
| 289 | 289 |
| 290 #endif // V8_HEAP_INL_H_ | 290 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |