Merge branch 'optimize_mcode' into fix_aot
This commit is contained in:
@@ -46,13 +46,17 @@ var streamline = function(ir, log) {
|
||||
not: true, and: true, or: true,
|
||||
is_int: true, is_text: true, is_num: true,
|
||||
is_bool: true, is_null: true, is_identical: true,
|
||||
is_array: true, is_func: true, is_record: true, is_stone: true
|
||||
is_array: true, is_func: true, is_record: true, is_stone: true,
|
||||
is_blob: true, is_data: true,
|
||||
is_true: true, is_false: true, is_fit: true,
|
||||
is_char: true, is_digit: true, is_letter: true,
|
||||
is_lower: true, is_upper: true, is_ws: true, is_actor: true
|
||||
}
|
||||
var type_check_map = {
|
||||
is_int: T_INT, is_text: T_TEXT, is_num: T_NUM,
|
||||
is_bool: T_BOOL, is_null: T_NULL,
|
||||
is_array: T_ARRAY, is_func: T_FUNCTION,
|
||||
is_record: T_RECORD
|
||||
is_record: T_RECORD, is_blob: T_BLOB
|
||||
}
|
||||
|
||||
// simplify_algebra dispatch tables
|
||||
@@ -374,7 +378,12 @@ var streamline = function(ir, log) {
|
||||
is_int: [1, T_BOOL], is_text: [1, T_BOOL], is_num: [1, T_BOOL],
|
||||
is_bool: [1, T_BOOL], is_null: [1, T_BOOL], is_identical: [1, T_BOOL],
|
||||
is_array: [1, T_BOOL], is_func: [1, T_BOOL],
|
||||
is_record: [1, T_BOOL], is_stone: [1, T_BOOL]
|
||||
is_record: [1, T_BOOL], is_stone: [1, T_BOOL],
|
||||
is_blob: [1, T_BOOL], is_data: [1, T_BOOL],
|
||||
is_true: [1, T_BOOL], is_false: [1, T_BOOL], is_fit: [1, T_BOOL],
|
||||
is_char: [1, T_BOOL], is_digit: [1, T_BOOL], is_letter: [1, T_BOOL],
|
||||
is_lower: [1, T_BOOL], is_upper: [1, T_BOOL], is_ws: [1, T_BOOL],
|
||||
is_actor: [1, T_BOOL]
|
||||
}
|
||||
|
||||
// Known intrinsic return types for invoke result inference.
|
||||
|
||||
Reference in New Issue
Block a user