|
@@ -37,14 +37,20 @@ LOCALS_EDGE_NAME = "jit_locals_edge"
|
|
|
GLOBAL_NOT_FOUND_MESSAGE_FORMAT = "Not found as global: %s"
|
|
|
"""The format of the 'not found as global' message. Takes a single argument."""
|
|
|
|
|
|
-def format_trace_message(debug_info, function_name, source='JIT'):
|
|
|
+BASELINE_JIT_ORIGIN_NAME = "baseline-jit"
|
|
|
+"""The origin name for functions that were produced by the baseline JIT."""
|
|
|
+
|
|
|
+FAST_JIT_ORIGIN_NAME = "fast-jit"
|
|
|
+"""The origin name for functions that were produced by the fast JIT."""
|
|
|
+
|
|
|
+def format_trace_message(debug_info, function_name, origin='unknown'):
|
|
|
"""Creates a formatted trace message."""
|
|
|
if debug_info is None:
|
|
|
debug_info = 'unknown location '
|
|
|
if function_name is None:
|
|
|
function_name = 'unknown function'
|
|
|
|
|
|
- return 'TRACE: %s(%s, %s)' % (debug_info, function_name, source)
|
|
|
+ return 'TRACE: %s(%s, %s)' % (debug_info, function_name, origin)
|
|
|
|
|
|
def call_function(function_id, named_arguments, **kwargs):
|
|
|
"""Runs the function with the given id, passing it the specified argument dictionary."""
|