def cpp_to_v8_conversion(idl_type, name):
    # Includes handled in includes_for_operation
    this_cpp_value_to_v8_value = cpp_value_to_v8_value(idl_type,
                                                       name,
                                                       isolate='isolate')
    return CPP_TO_V8_CONVERSION.format(
        name=name, cpp_value_to_v8_value=this_cpp_value_to_v8_value)
def cpp_to_v8_conversion(idl_type, name):
    # FIXME: setting creation_context=v8::Handle<v8::Object>() is wrong,
    # as toV8 then implicitly uses the current context, which causes leaks
    # between isolate worlds if a different context should be used.
    cpp_value_to_v8_value = v8_types.cpp_value_to_v8_value(idl_type, name,
        isolate='isolate', creation_context='v8::Handle<v8::Object>()')
    return 'v8::Handle<v8::Value> {name}Handle = {cpp_to_v8};'.format(
        name=name, cpp_to_v8=cpp_value_to_v8_value)
def cpp_to_v8_conversion(idl_type, name):
    # FIXME: setting creation_context=v8::Handle<v8::Object>() is wrong,
    # as toV8 then implicitly uses the current context, which causes leaks
    # between isolate worlds if a different context should be used.
    cpp_value_to_v8_value = v8_types.cpp_value_to_v8_value(
        idl_type,
        name,
        isolate='isolate',
        creation_context='v8::Handle<v8::Object>()')
    return 'v8::Handle<v8::Value> {name}Handle = {cpp_to_v8};'.format(
        name=name, cpp_to_v8=cpp_value_to_v8_value)
def cpp_to_v8_conversion(idl_type, name):
    # Includes handled in includes_for_operation
    this_cpp_value_to_v8_value = cpp_value_to_v8_value(idl_type, name, isolate='isolate')
    return CPP_TO_V8_CONVERSION.format(name=name, cpp_value_to_v8_value=this_cpp_value_to_v8_value)
def cpp_to_v8_conversion(idl_type, name):
    this_cpp_value_to_v8_value = cpp_value_to_v8_value(idl_type, name, 'isolate', creation_context='v8::Handle<v8::Object>()')
    return CPP_TO_V8_CONVERSION.format(name=name, cpp_value_to_v8_value=this_cpp_value_to_v8_value)