OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_V8_DEBUG_H_ | 5 #ifndef V8_V8_DEBUG_H_ |
6 #define V8_V8_DEBUG_H_ | 6 #define V8_V8_DEBUG_H_ |
7 | 7 |
8 #include "v8.h" // NOLINT(build/include) | 8 #include "v8.h" // NOLINT(build/include) |
9 | 9 |
10 /** | 10 /** |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 */ | 269 */ |
270 static void SetLiveEditEnabled(Isolate* isolate, bool enable); | 270 static void SetLiveEditEnabled(Isolate* isolate, bool enable); |
271 | 271 |
272 /** | 272 /** |
273 * Returns array of internal properties specific to the value type. Result has | 273 * Returns array of internal properties specific to the value type. Result has |
274 * the following format: [<name>, <value>,...,<name>, <value>]. Result array | 274 * the following format: [<name>, <value>,...,<name>, <value>]. Result array |
275 * will be allocated in the current context. | 275 * will be allocated in the current context. |
276 */ | 276 */ |
277 static MaybeLocal<Array> GetInternalProperties(Isolate* isolate, | 277 static MaybeLocal<Array> GetInternalProperties(Isolate* isolate, |
278 Local<Value> value); | 278 Local<Value> value); |
| 279 |
| 280 /** |
| 281 * Defines if the ES2015 tail call elimination feature is enabled or not. |
| 282 * The change of this flag triggers deoptimization of all functions that |
| 283 * contain calls at tail position. |
| 284 */ |
| 285 static bool IsTailCallEliminationEnabled(Isolate* isolate); |
| 286 static void SetTailCallEliminationEnabled(Isolate* isolate, bool enabled); |
279 }; | 287 }; |
280 | 288 |
281 | 289 |
282 } // namespace v8 | 290 } // namespace v8 |
283 | 291 |
284 | 292 |
285 #undef EXPORT | 293 #undef EXPORT |
286 | 294 |
287 | 295 |
288 #endif // V8_V8_DEBUG_H_ | 296 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |