Chromium Code Reviews| 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 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2235 } | 2235 } |
| 2236 set_the_hole_value(obj); | 2236 set_the_hole_value(obj); |
| 2237 | 2237 |
| 2238 { MaybeObject* maybe_obj = CreateOddball("arguments_marker", | 2238 { MaybeObject* maybe_obj = CreateOddball("arguments_marker", |
| 2239 Smi::FromInt(-4), | 2239 Smi::FromInt(-4), |
| 2240 Oddball::kArgumentMarker); | 2240 Oddball::kArgumentMarker); |
| 2241 if (!maybe_obj->ToObject(&obj)) return false; | 2241 if (!maybe_obj->ToObject(&obj)) return false; |
| 2242 } | 2242 } |
| 2243 set_arguments_marker(obj); | 2243 set_arguments_marker(obj); |
| 2244 | 2244 |
| 2245 { MaybeObject* maybe_obj = CreateOddball("frame_alignment_marker", | |
| 2246 Smi::FromInt(-5), | |
|
Kevin Millikin (Chromium)
2011/09/23 09:38:49
I guess it's useful to give the hidden oddballs di
William Hesse
2011/09/23 12:50:11
Done.
| |
| 2247 Oddball::kFrameAlignmentMarker); | |
| 2248 if (!maybe_obj->ToObject(&obj)) return false; | |
| 2249 } | |
| 2250 set_frame_alignment_marker(obj); | |
| 2251 | |
| 2245 { MaybeObject* maybe_obj = CreateOddball("no_interceptor_result_sentinel", | 2252 { MaybeObject* maybe_obj = CreateOddball("no_interceptor_result_sentinel", |
| 2246 Smi::FromInt(-2), | 2253 Smi::FromInt(-2), |
| 2247 Oddball::kOther); | 2254 Oddball::kOther); |
| 2248 if (!maybe_obj->ToObject(&obj)) return false; | 2255 if (!maybe_obj->ToObject(&obj)) return false; |
| 2249 } | 2256 } |
| 2250 set_no_interceptor_result_sentinel(obj); | 2257 set_no_interceptor_result_sentinel(obj); |
| 2251 | 2258 |
| 2252 { MaybeObject* maybe_obj = CreateOddball("termination_exception", | 2259 { MaybeObject* maybe_obj = CreateOddball("termination_exception", |
| 2253 Smi::FromInt(-3), | 2260 Smi::FromInt(-3), |
| 2254 Oddball::kOther); | 2261 Oddball::kOther); |
| (...skipping 4092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6347 } | 6354 } |
| 6348 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6355 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
| 6349 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6356 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
| 6350 next = chunk->next_chunk(); | 6357 next = chunk->next_chunk(); |
| 6351 isolate_->memory_allocator()->Free(chunk); | 6358 isolate_->memory_allocator()->Free(chunk); |
| 6352 } | 6359 } |
| 6353 chunks_queued_for_free_ = NULL; | 6360 chunks_queued_for_free_ = NULL; |
| 6354 } | 6361 } |
| 6355 | 6362 |
| 6356 } } // namespace v8::internal | 6363 } } // namespace v8::internal |
| OLD | NEW |