| 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 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2463 set_false_value(Oddball::cast(obj)); | 2463 set_false_value(Oddball::cast(obj)); |
| 2464 | 2464 |
| 2465 { MaybeObject* maybe_obj = CreateOddball("hole", | 2465 { MaybeObject* maybe_obj = CreateOddball("hole", |
| 2466 Smi::FromInt(-1), | 2466 Smi::FromInt(-1), |
| 2467 Oddball::kTheHole); | 2467 Oddball::kTheHole); |
| 2468 if (!maybe_obj->ToObject(&obj)) return false; | 2468 if (!maybe_obj->ToObject(&obj)) return false; |
| 2469 } | 2469 } |
| 2470 set_the_hole_value(Oddball::cast(obj)); | 2470 set_the_hole_value(Oddball::cast(obj)); |
| 2471 | 2471 |
| 2472 { MaybeObject* maybe_obj = CreateOddball("arguments_marker", | 2472 { MaybeObject* maybe_obj = CreateOddball("arguments_marker", |
| 2473 Smi::FromInt(-2), | 2473 Smi::FromInt(-4), |
| 2474 Oddball::kArgumentMarker); | 2474 Oddball::kArgumentMarker); |
| 2475 if (!maybe_obj->ToObject(&obj)) return false; | 2475 if (!maybe_obj->ToObject(&obj)) return false; |
| 2476 } | 2476 } |
| 2477 set_arguments_marker(Oddball::cast(obj)); | 2477 set_arguments_marker(Oddball::cast(obj)); |
| 2478 | 2478 |
| 2479 { MaybeObject* maybe_obj = CreateOddball("no_interceptor_result_sentinel", | 2479 { MaybeObject* maybe_obj = CreateOddball("no_interceptor_result_sentinel", |
| 2480 Smi::FromInt(-3), | 2480 Smi::FromInt(-2), |
| 2481 Oddball::kOther); | 2481 Oddball::kOther); |
| 2482 if (!maybe_obj->ToObject(&obj)) return false; | 2482 if (!maybe_obj->ToObject(&obj)) return false; |
| 2483 } | 2483 } |
| 2484 set_no_interceptor_result_sentinel(obj); | 2484 set_no_interceptor_result_sentinel(obj); |
| 2485 | 2485 |
| 2486 { MaybeObject* maybe_obj = CreateOddball("termination_exception", | 2486 { MaybeObject* maybe_obj = CreateOddball("termination_exception", |
| 2487 Smi::FromInt(-4), | 2487 Smi::FromInt(-3), |
| 2488 Oddball::kOther); | 2488 Oddball::kOther); |
| 2489 if (!maybe_obj->ToObject(&obj)) return false; | 2489 if (!maybe_obj->ToObject(&obj)) return false; |
| 2490 } | 2490 } |
| 2491 set_termination_exception(obj); | 2491 set_termination_exception(obj); |
| 2492 | 2492 |
| 2493 { MaybeObject* maybe_obj = CreateOddball("frame_alignment_marker", | |
| 2494 Smi::FromInt(-5), | |
| 2495 Oddball::kOther); | |
| 2496 if (!maybe_obj->ToObject(&obj)) return false; | |
| 2497 } | |
| 2498 set_frame_alignment_marker(Oddball::cast(obj)); | |
| 2499 STATIC_ASSERT(Oddball::kLeastHiddenOddballNumber == -5); | |
| 2500 | |
| 2501 // Allocate the empty string. | 2493 // Allocate the empty string. |
| 2502 { MaybeObject* maybe_obj = AllocateRawAsciiString(0, TENURED); | 2494 { MaybeObject* maybe_obj = AllocateRawAsciiString(0, TENURED); |
| 2503 if (!maybe_obj->ToObject(&obj)) return false; | 2495 if (!maybe_obj->ToObject(&obj)) return false; |
| 2504 } | 2496 } |
| 2505 set_empty_string(String::cast(obj)); | 2497 set_empty_string(String::cast(obj)); |
| 2506 | 2498 |
| 2507 for (unsigned i = 0; i < ARRAY_SIZE(constant_symbol_table); i++) { | 2499 for (unsigned i = 0; i < ARRAY_SIZE(constant_symbol_table); i++) { |
| 2508 { MaybeObject* maybe_obj = | 2500 { MaybeObject* maybe_obj = |
| 2509 LookupAsciiSymbol(constant_symbol_table[i].contents); | 2501 LookupAsciiSymbol(constant_symbol_table[i].contents); |
| 2510 if (!maybe_obj->ToObject(&obj)) return false; | 2502 if (!maybe_obj->ToObject(&obj)) return false; |
| (...skipping 4454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6965 isolate_->heap()->store_buffer()->Compact(); | 6957 isolate_->heap()->store_buffer()->Compact(); |
| 6966 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6958 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
| 6967 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6959 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
| 6968 next = chunk->next_chunk(); | 6960 next = chunk->next_chunk(); |
| 6969 isolate_->memory_allocator()->Free(chunk); | 6961 isolate_->memory_allocator()->Free(chunk); |
| 6970 } | 6962 } |
| 6971 chunks_queued_for_free_ = NULL; | 6963 chunks_queued_for_free_ = NULL; |
| 6972 } | 6964 } |
| 6973 | 6965 |
| 6974 } } // namespace v8::internal | 6966 } } // namespace v8::internal |
| OLD | NEW |