| 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 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2417 } | 2417 } |
| 2418 | 2418 |
| 2419 | 2419 |
| 2420 MaybeObject* Heap::AllocateAccessorPair() { | 2420 MaybeObject* Heap::AllocateAccessorPair() { |
| 2421 AccessorPair* accessors; | 2421 AccessorPair* accessors; |
| 2422 { MaybeObject* maybe_accessors = AllocateStruct(ACCESSOR_PAIR_TYPE); | 2422 { MaybeObject* maybe_accessors = AllocateStruct(ACCESSOR_PAIR_TYPE); |
| 2423 if (!maybe_accessors->To(&accessors)) return maybe_accessors; | 2423 if (!maybe_accessors->To(&accessors)) return maybe_accessors; |
| 2424 } | 2424 } |
| 2425 accessors->set_getter(the_hole_value(), SKIP_WRITE_BARRIER); | 2425 accessors->set_getter(the_hole_value(), SKIP_WRITE_BARRIER); |
| 2426 accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER); | 2426 accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER); |
| 2427 accessors->set_flag(Smi::FromInt(0), SKIP_WRITE_BARRIER); |
| 2427 return accessors; | 2428 return accessors; |
| 2428 } | 2429 } |
| 2429 | 2430 |
| 2430 | 2431 |
| 2431 MaybeObject* Heap::AllocateTypeFeedbackInfo() { | 2432 MaybeObject* Heap::AllocateTypeFeedbackInfo() { |
| 2432 TypeFeedbackInfo* info; | 2433 TypeFeedbackInfo* info; |
| 2433 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); | 2434 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); |
| 2434 if (!maybe_info->To(&info)) return maybe_info; | 2435 if (!maybe_info->To(&info)) return maybe_info; |
| 2435 } | 2436 } |
| 2436 info->initialize_storage(); | 2437 info->initialize_storage(); |
| (...skipping 5608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8045 if (FLAG_parallel_recompilation) { | 8046 if (FLAG_parallel_recompilation) { |
| 8046 heap_->relocation_mutex_->Lock(); | 8047 heap_->relocation_mutex_->Lock(); |
| 8047 #ifdef DEBUG | 8048 #ifdef DEBUG |
| 8048 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8049 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
| 8049 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8050 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
| 8050 #endif // DEBUG | 8051 #endif // DEBUG |
| 8051 } | 8052 } |
| 8052 } | 8053 } |
| 8053 | 8054 |
| 8054 } } // namespace v8::internal | 8055 } } // namespace v8::internal |
| OLD | NEW |