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 12752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12763 object->TransitionElementsKind(to_kind)); | 12763 object->TransitionElementsKind(to_kind)); |
12764 } | 12764 } |
12765 | 12765 |
12766 | 12766 |
12767 const double AllocationSite::kPretenureRatio = 0.60; | 12767 const double AllocationSite::kPretenureRatio = 0.60; |
12768 | 12768 |
12769 | 12769 |
12770 bool AllocationSite::IsNestedSite() { | 12770 bool AllocationSite::IsNestedSite() { |
12771 ASSERT(FLAG_trace_track_allocation_sites); | 12771 ASSERT(FLAG_trace_track_allocation_sites); |
12772 Object* current = GetHeap()->allocation_sites_list(); | 12772 Object* current = GetHeap()->allocation_sites_list(); |
12773 while (current != NULL && current->IsAllocationSite()) { | 12773 while (current->IsAllocationSite()) { |
12774 AllocationSite* current_site = AllocationSite::cast(current); | 12774 AllocationSite* current_site = AllocationSite::cast(current); |
12775 if (current_site->nested_site() == this) { | 12775 if (current_site->nested_site() == this) { |
12776 return true; | 12776 return true; |
12777 } | 12777 } |
12778 current = current_site->weak_next(); | 12778 current = current_site->weak_next(); |
12779 } | 12779 } |
12780 return false; | 12780 return false; |
12781 } | 12781 } |
12782 | 12782 |
12783 | 12783 |
(...skipping 3848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16632 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16632 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16633 static const char* error_messages_[] = { | 16633 static const char* error_messages_[] = { |
16634 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16634 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16635 }; | 16635 }; |
16636 #undef ERROR_MESSAGES_TEXTS | 16636 #undef ERROR_MESSAGES_TEXTS |
16637 return error_messages_[reason]; | 16637 return error_messages_[reason]; |
16638 } | 16638 } |
16639 | 16639 |
16640 | 16640 |
16641 } } // namespace v8::internal | 16641 } } // namespace v8::internal |
OLD | NEW |