OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 12770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12781 void JSObject::TransitionElementsKind(Handle<JSObject> object, | 12781 void JSObject::TransitionElementsKind(Handle<JSObject> object, |
12782 ElementsKind to_kind) { | 12782 ElementsKind to_kind) { |
12783 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(), | 12783 CALL_HEAP_FUNCTION_VOID(object->GetIsolate(), |
12784 object->TransitionElementsKind(to_kind)); | 12784 object->TransitionElementsKind(to_kind)); |
12785 } | 12785 } |
12786 | 12786 |
12787 | 12787 |
12788 const double AllocationSite::kPretenureRatio = 0.60; | 12788 const double AllocationSite::kPretenureRatio = 0.60; |
12789 | 12789 |
12790 | 12790 |
| 12791 void AllocationSite::ResetPretenureDecision() { |
| 12792 dependent_code()->DeoptimizeDependentCodeGroup( |
| 12793 GetIsolate(), |
| 12794 DependentCode::kAllocationSiteTenuringChangedGroup); |
| 12795 set_pretenure_decision(Smi::FromInt(kUndecided)); |
| 12796 } |
| 12797 |
| 12798 |
12791 bool AllocationSite::IsNestedSite() { | 12799 bool AllocationSite::IsNestedSite() { |
12792 ASSERT(FLAG_trace_track_allocation_sites); | 12800 ASSERT(FLAG_trace_track_allocation_sites); |
12793 Object* current = GetHeap()->allocation_sites_list(); | 12801 Object* current = GetHeap()->allocation_sites_list(); |
12794 while (current != NULL && current->IsAllocationSite()) { | 12802 while (current != NULL && current->IsAllocationSite()) { |
12795 AllocationSite* current_site = AllocationSite::cast(current); | 12803 AllocationSite* current_site = AllocationSite::cast(current); |
12796 if (current_site->nested_site() == this) { | 12804 if (current_site->nested_site() == this) { |
12797 return true; | 12805 return true; |
12798 } | 12806 } |
12799 current = current_site->weak_next(); | 12807 current = current_site->weak_next(); |
12800 } | 12808 } |
(...skipping 3850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16651 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16659 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16652 static const char* error_messages_[] = { | 16660 static const char* error_messages_[] = { |
16653 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16661 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16654 }; | 16662 }; |
16655 #undef ERROR_MESSAGES_TEXTS | 16663 #undef ERROR_MESSAGES_TEXTS |
16656 return error_messages_[reason]; | 16664 return error_messages_[reason]; |
16657 } | 16665 } |
16658 | 16666 |
16659 | 16667 |
16660 } } // namespace v8::internal | 16668 } } // namespace v8::internal |
OLD | NEW |