diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-06-05 14:30:04 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2012-06-05 14:30:04 +0200 |
commit | a48ece9a5cfb54a073aae7de8717eea1f1b357fb (patch) | |
tree | d5764bdd16b2636603b0f34a15d0724830417945 /llvm_runtime.cpp | |
parent | 437c25fe33f766844ad297fb2e4135c22af042a6 (diff) |
Generate LLVM code for the binary expressions
Diffstat (limited to 'llvm_runtime.cpp')
-rw-r--r-- | llvm_runtime.cpp | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/llvm_runtime.cpp b/llvm_runtime.cpp index 76ae784cc7..66fcf3c830 100644 --- a/llvm_runtime.cpp +++ b/llvm_runtime.cpp @@ -29,4 +29,110 @@ bool __qmljs_llvm_to_boolean(Context *ctx, const Value *value) return __qmljs_to_boolean(ctx, value); } +void __qmljs_llvm_bit_and(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_bit_and(ctx, result, left, right); +} + +void __qmljs_llvm_bit_or(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_bit_or(ctx, result, left, right); +} + +void __qmljs_llvm_bit_xor(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_bit_xor(ctx, result, left, right); +} + +void __qmljs_llvm_add(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_add(ctx, result, left, right); +} + +void __qmljs_llvm_sub(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_sub(ctx, result, left, right); +} + +void __qmljs_llvm_mul(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_mul(ctx, result, left, right); +} + +void __qmljs_llvm_div(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_div(ctx, result, left, right); +} + +void __qmljs_llvm_mod(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_mod(ctx, result, left, right); +} + +void __qmljs_llvm_shl(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_shl(ctx, result, left, right); +} + +void __qmljs_llvm_shr(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_shr(ctx, result, left, right); +} + +void __qmljs_llvm_ushr(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_ushr(ctx, result, left, right); +} + +void __qmljs_llvm_gt(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_gt(ctx, result, left, right); +} + +void __qmljs_llvm_lt(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_lt(ctx, result, left, right); +} + +void __qmljs_llvm_ge(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_ge(ctx, result, left, right); +} + +void __qmljs_llvm_le(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_le(ctx, result, left, right); +} + +void __qmljs_llvm_eq(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_eq(ctx, result, left, right); +} + +void __qmljs_llvm_ne(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_ne(ctx, result, left, right); +} + +void __qmljs_llvm_se(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_se(ctx, result, left, right); +} + +void __qmljs_llvm_sne(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_sne(ctx, result, left, right); +} + +void __qmljs_llvm_instanceof(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_instanceof(ctx, result, left, right); +} + +void __qmljs_llvm_in(Context *ctx, Value *result, Value *left, Value *right) +{ + __qmljs_in(ctx, result, left, right); +} + + } // extern "C" |