| 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 // Initialize a filler object to keep the ability to iterate over the heap | 1118 // Initialize a filler object to keep the ability to iterate over the heap |
| 1119 // when shortening objects. | 1119 // when shortening objects. |
| 1120 void CreateFillerObjectAt(Address addr, int size); | 1120 void CreateFillerObjectAt(Address addr, int size); |
| 1121 | 1121 |
| 1122 // Makes a new native code object | 1122 // Makes a new native code object |
| 1123 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1123 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1124 // failed. On success, the pointer to the Code object is stored in the | 1124 // failed. On success, the pointer to the Code object is stored in the |
| 1125 // self_reference. This allows generated code to reference its own Code | 1125 // self_reference. This allows generated code to reference its own Code |
| 1126 // object by containing this pointer. | 1126 // object by containing this pointer. |
| 1127 // Please note this function does not perform a garbage collection. | 1127 // Please note this function does not perform a garbage collection. |
| 1128 MUST_USE_RESULT MaybeObject* CreateCode(const CodeDesc& desc, | 1128 MUST_USE_RESULT MaybeObject* CreateCode( |
| 1129 Code::Flags flags, | 1129 const CodeDesc& desc, |
| 1130 Handle<Object> self_reference, | 1130 Code::Flags flags, |
| 1131 bool immovable = false, | 1131 Handle<Object> self_reference, |
| 1132 bool crankshafted = false); | 1132 bool immovable = false, |
| 1133 bool crankshafted = false, |
| 1134 int prologue_offset = Code::kPrologueOffsetNotSet); |
| 1133 | 1135 |
| 1134 MUST_USE_RESULT MaybeObject* CopyCode(Code* code); | 1136 MUST_USE_RESULT MaybeObject* CopyCode(Code* code); |
| 1135 | 1137 |
| 1136 // Copy the code and scope info part of the code object, but insert | 1138 // Copy the code and scope info part of the code object, but insert |
| 1137 // the provided data as the relocation information. | 1139 // the provided data as the relocation information. |
| 1138 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); | 1140 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); |
| 1139 | 1141 |
| 1140 // Finds the internalized copy for string in the string table. | 1142 // Finds the internalized copy for string in the string table. |
| 1141 // If not found, a new string is added to the table and returned. | 1143 // If not found, a new string is added to the table and returned. |
| 1142 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation | 1144 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation |
| (...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3076 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3078 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3077 | 3079 |
| 3078 private: | 3080 private: |
| 3079 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3081 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3080 }; | 3082 }; |
| 3081 #endif // DEBUG | 3083 #endif // DEBUG |
| 3082 | 3084 |
| 3083 } } // namespace v8::internal | 3085 } } // namespace v8::internal |
| 3084 | 3086 |
| 3085 #endif // V8_HEAP_H_ | 3087 #endif // V8_HEAP_H_ |
| OLD | NEW |