| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 146 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
| 147 V(Code, js_entry_code, JsEntryCode) \ | 147 V(Code, js_entry_code, JsEntryCode) \ |
| 148 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 148 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
| 149 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 149 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 150 V(Object, last_script_id, LastScriptId) \ | 150 V(Object, last_script_id, LastScriptId) \ |
| 151 V(Script, empty_script, EmptyScript) \ | 151 V(Script, empty_script, EmptyScript) \ |
| 152 V(Smi, real_stack_limit, RealStackLimit) \ | 152 V(Smi, real_stack_limit, RealStackLimit) \ |
| 153 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 153 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
| 154 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ | 154 V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) \ |
| 155 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 155 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
| 156 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
| 156 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 157 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
| 157 | 158 |
| 158 #define ROOT_LIST(V) \ | 159 #define ROOT_LIST(V) \ |
| 159 STRONG_ROOT_LIST(V) \ | 160 STRONG_ROOT_LIST(V) \ |
| 160 V(SymbolTable, symbol_table, SymbolTable) | 161 V(SymbolTable, symbol_table, SymbolTable) |
| 161 | 162 |
| 162 #define SYMBOL_LIST(V) \ | 163 #define SYMBOL_LIST(V) \ |
| 163 V(Array_symbol, "Array") \ | 164 V(Array_symbol, "Array") \ |
| 164 V(Object_symbol, "Object") \ | 165 V(Object_symbol, "Object") \ |
| 165 V(Proto_symbol, "__proto__") \ | 166 V(Proto_symbol, "__proto__") \ |
| (...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1585 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { | 1586 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { |
| 1586 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); | 1587 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); |
| 1587 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); | 1588 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); |
| 1588 } | 1589 } |
| 1589 | 1590 |
| 1590 void SetConstructStubDeoptPCOffset(int pc_offset) { | 1591 void SetConstructStubDeoptPCOffset(int pc_offset) { |
| 1591 ASSERT(construct_stub_deopt_pc_offset() == Smi::FromInt(0)); | 1592 ASSERT(construct_stub_deopt_pc_offset() == Smi::FromInt(0)); |
| 1592 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); | 1593 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); |
| 1593 } | 1594 } |
| 1594 | 1595 |
| 1596 void SetGetterStubDeoptPCOffset(int pc_offset) { |
| 1597 ASSERT(getter_stub_deopt_pc_offset() == Smi::FromInt(0)); |
| 1598 set_getter_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); |
| 1599 } |
| 1600 |
| 1595 void SetSetterStubDeoptPCOffset(int pc_offset) { | 1601 void SetSetterStubDeoptPCOffset(int pc_offset) { |
| 1596 ASSERT(setter_stub_deopt_pc_offset() == Smi::FromInt(0)); | 1602 ASSERT(setter_stub_deopt_pc_offset() == Smi::FromInt(0)); |
| 1597 set_setter_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); | 1603 set_setter_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); |
| 1598 } | 1604 } |
| 1599 | 1605 |
| 1600 // For post mortem debugging. | 1606 // For post mortem debugging. |
| 1601 void RememberUnmappedPage(Address page, bool compacted); | 1607 void RememberUnmappedPage(Address page, bool compacted); |
| 1602 | 1608 |
| 1603 // Global inline caching age: it is incremented on some GCs after context | 1609 // Global inline caching age: it is incremented on some GCs after context |
| 1604 // disposal. We use it to flush inline caches. | 1610 // disposal. We use it to flush inline caches. |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2792 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2798 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2793 | 2799 |
| 2794 private: | 2800 private: |
| 2795 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2801 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2796 }; | 2802 }; |
| 2797 #endif // DEBUG || LIVE_OBJECT_LIST | 2803 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2798 | 2804 |
| 2799 } } // namespace v8::internal | 2805 } } // namespace v8::internal |
| 2800 | 2806 |
| 2801 #endif // V8_HEAP_H_ | 2807 #endif // V8_HEAP_H_ |
| OLD | NEW |