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 27 matching lines...) Expand all Loading... |
38 #include "debug.h" | 38 #include "debug.h" |
39 #include "deoptimizer.h" | 39 #include "deoptimizer.h" |
40 #include "date.h" | 40 #include "date.h" |
41 #include "elements.h" | 41 #include "elements.h" |
42 #include "execution.h" | 42 #include "execution.h" |
43 #include "full-codegen.h" | 43 #include "full-codegen.h" |
44 #include "hydrogen.h" | 44 #include "hydrogen.h" |
45 #include "isolate-inl.h" | 45 #include "isolate-inl.h" |
46 #include "log.h" | 46 #include "log.h" |
47 #include "objects-inl.h" | 47 #include "objects-inl.h" |
48 #include "objects-visiting.h" | |
49 #include "objects-visiting-inl.h" | 48 #include "objects-visiting-inl.h" |
50 #include "macro-assembler.h" | 49 #include "macro-assembler.h" |
51 #include "mark-compact.h" | 50 #include "mark-compact.h" |
52 #include "safepoint-table.h" | 51 #include "safepoint-table.h" |
53 #include "string-stream.h" | 52 #include "string-stream.h" |
54 #include "utils.h" | 53 #include "utils.h" |
55 | 54 |
56 #ifdef ENABLE_DISASSEMBLER | 55 #ifdef ENABLE_DISASSEMBLER |
57 #include "disasm.h" | 56 #include "disasm.h" |
58 #include "disassembler.h" | 57 #include "disassembler.h" |
(...skipping 12731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12790 } | 12789 } |
12791 | 12790 |
12792 | 12791 |
12793 const double AllocationSite::kPretenureRatio = 0.60; | 12792 const double AllocationSite::kPretenureRatio = 0.60; |
12794 | 12793 |
12795 | 12794 |
12796 void AllocationSite::ResetPretenureDecision() { | 12795 void AllocationSite::ResetPretenureDecision() { |
12797 dependent_code()->DeoptimizeDependentCodeGroup( | 12796 dependent_code()->DeoptimizeDependentCodeGroup( |
12798 GetIsolate(), | 12797 GetIsolate(), |
12799 DependentCode::kAllocationSiteTenuringChangedGroup); | 12798 DependentCode::kAllocationSiteTenuringChangedGroup); |
12800 set_pretenure_decision(Smi::FromInt(kUndecided)); | 12799 set_pretenure_decision(kUndecided); |
12801 set_memento_found_count(Smi::FromInt(0)); | 12800 set_memento_found_count(0); |
12802 set_memento_create_count(Smi::FromInt(0)); | 12801 set_memento_create_count(0); |
12803 } | 12802 } |
12804 | 12803 |
12805 | 12804 |
12806 PretenureFlag AllocationSite::GetPretenureMode() { | 12805 PretenureFlag AllocationSite::GetPretenureMode() { |
12807 int mode = pretenure_decision()->value(); | 12806 PretenureDecision mode = pretenure_decision(); |
12808 // Zombie objects "decide" to be untenured. | 12807 // Zombie objects "decide" to be untenured. |
12809 return (mode == kTenure && GetHeap()->GetPretenureMode() == TENURED) | 12808 return (mode == kTenure && GetHeap()->GetPretenureMode() == TENURED) |
12810 ? TENURED : NOT_TENURED; | 12809 ? TENURED : NOT_TENURED; |
12811 } | 12810 } |
12812 | 12811 |
12813 | 12812 |
12814 bool AllocationSite::IsNestedSite() { | 12813 bool AllocationSite::IsNestedSite() { |
12815 ASSERT(FLAG_trace_track_allocation_sites); | 12814 ASSERT(FLAG_trace_track_allocation_sites); |
12816 Object* current = GetHeap()->allocation_sites_list(); | 12815 Object* current = GetHeap()->allocation_sites_list(); |
12817 while (current->IsAllocationSite()) { | 12816 while (current->IsAllocationSite()) { |
(...skipping 3858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16676 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16675 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16677 static const char* error_messages_[] = { | 16676 static const char* error_messages_[] = { |
16678 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16677 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16679 }; | 16678 }; |
16680 #undef ERROR_MESSAGES_TEXTS | 16679 #undef ERROR_MESSAGES_TEXTS |
16681 return error_messages_[reason]; | 16680 return error_messages_[reason]; |
16682 } | 16681 } |
16683 | 16682 |
16684 | 16683 |
16685 } } // namespace v8::internal | 16684 } } // namespace v8::internal |
OLD | NEW |