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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 | 1135 |
1136 // Makes a new native code object | 1136 // Makes a new native code object |
1137 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1137 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
1138 // failed. On success, the pointer to the Code object is stored in the | 1138 // failed. On success, the pointer to the Code object is stored in the |
1139 // self_reference. This allows generated code to reference its own Code | 1139 // self_reference. This allows generated code to reference its own Code |
1140 // object by containing this pointer. | 1140 // object by containing this pointer. |
1141 // Please note this function does not perform a garbage collection. | 1141 // Please note this function does not perform a garbage collection. |
1142 MUST_USE_RESULT MaybeObject* CreateCode(const CodeDesc& desc, | 1142 MUST_USE_RESULT MaybeObject* CreateCode(const CodeDesc& desc, |
1143 Code::Flags flags, | 1143 Code::Flags flags, |
1144 Handle<Object> self_reference, | 1144 Handle<Object> self_reference, |
1145 bool immovable = false); | 1145 bool immovable = false, |
| 1146 bool crankshafted = false); |
1146 | 1147 |
1147 MUST_USE_RESULT MaybeObject* CopyCode(Code* code); | 1148 MUST_USE_RESULT MaybeObject* CopyCode(Code* code); |
1148 | 1149 |
1149 // Copy the code and scope info part of the code object, but insert | 1150 // Copy the code and scope info part of the code object, but insert |
1150 // the provided data as the relocation information. | 1151 // the provided data as the relocation information. |
1151 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); | 1152 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); |
1152 | 1153 |
1153 // Finds the internalized copy for string in the string table. | 1154 // Finds the internalized copy for string in the string table. |
1154 // If not found, a new string is added to the table and returned. | 1155 // If not found, a new string is added to the table and returned. |
1155 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation | 1156 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation |
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3014 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3015 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
3015 | 3016 |
3016 private: | 3017 private: |
3017 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3018 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3018 }; | 3019 }; |
3019 #endif // DEBUG | 3020 #endif // DEBUG |
3020 | 3021 |
3021 } } // namespace v8::internal | 3022 } } // namespace v8::internal |
3022 | 3023 |
3023 #endif // V8_HEAP_H_ | 3024 #endif // V8_HEAP_H_ |
OLD | NEW |