Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index a7218058d7dd24108b769ce412c091dd4d81b542..bbffef268b093d365b739601cb28e42d94d1a252 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -837,48 +837,48 @@ $toPositiveInteger = ToPositiveInteger; |
$toPrimitive = ToPrimitive; |
$toString = ToString; |
-%InstallJSBuiltins({ |
- EQUALS, |
- COMPARE, |
- COMPARE_STRONG, |
- ADD, |
- ADD_STRONG, |
- STRING_ADD_LEFT, |
- STRING_ADD_RIGHT, |
- SUB, |
- SUB_STRONG, |
- MUL, |
- MUL_STRONG, |
- DIV, |
- DIV_STRONG, |
- MOD, |
- MOD_STRONG, |
- BIT_OR, |
- BIT_OR_STRONG, |
- BIT_AND, |
- BIT_AND_STRONG, |
- BIT_XOR, |
- BIT_XOR_STRONG, |
- SHL, |
- SHL_STRONG, |
- SAR, |
- SAR_STRONG, |
- SHR, |
- SHR_STRONG, |
- IN, |
- CALL_NON_FUNCTION, |
- CALL_NON_FUNCTION_AS_CONSTRUCTOR, |
- CALL_FUNCTION_PROXY, |
- CALL_FUNCTION_PROXY_AS_CONSTRUCTOR, |
- CONCAT_ITERABLE_TO_ARRAY, |
- APPLY_PREPARE, |
- REFLECT_APPLY_PREPARE, |
- REFLECT_CONSTRUCT_PREPARE, |
- STACK_OVERFLOW, |
- TO_NUMBER, |
- TO_STRING, |
- TO_NAME, |
-}); |
+%InstallToContext([ |
+ "add_builtin", ADD, |
+ "add_strong_builtin", ADD_STRONG, |
+ "apply_prepare_builtin", APPLY_PREPARE, |
+ "bit_and_builtin", BIT_AND, |
+ "bit_and_strong_builtin", BIT_AND_STRONG, |
+ "bit_or_builtin", BIT_OR, |
+ "bit_or_strong_builtin", BIT_OR_STRONG, |
+ "bit_xor_builtin", BIT_XOR, |
+ "bit_xor_strong_builtin", BIT_XOR_STRONG, |
+ "call_function_proxy_as_constructor_builtin", CALL_FUNCTION_PROXY_AS_CONSTRUCTOR, |
+ "call_function_proxy_builtin", CALL_FUNCTION_PROXY, |
+ "call_non_function_as_constructor_builtin", CALL_NON_FUNCTION_AS_CONSTRUCTOR, |
+ "call_non_function_builtin", CALL_NON_FUNCTION, |
+ "compare_builtin", COMPARE, |
+ "compare_strong_builtin", COMPARE_STRONG, |
+ "concat_iterable_to_array_builtin", CONCAT_ITERABLE_TO_ARRAY, |
+ "div_builtin", DIV, |
+ "div_strong_builtin", DIV_STRONG, |
+ "equals_builtin", EQUALS, |
+ "in_builtin", IN, |
+ "mod_builtin", MOD, |
+ "mod_strong_builtin", MOD_STRONG, |
+ "mul_builtin", MUL, |
+ "mul_strong_builtin", MUL_STRONG, |
+ "reflect_apply_prepare_builtin", REFLECT_APPLY_PREPARE, |
+ "reflect_construct_prepare_builtin", REFLECT_CONSTRUCT_PREPARE, |
+ "sar_builtin", SAR, |
+ "sar_strong_builtin", SAR_STRONG, |
+ "shl_builtin", SHL, |
+ "shl_strong_builtin", SHL_STRONG, |
+ "shr_builtin", SHR, |
+ "shr_strong_builtin", SHR_STRONG, |
+ "stack_overflow_builtin", STACK_OVERFLOW, |
+ "string_add_left_builtin", STRING_ADD_LEFT, |
+ "string_add_right_builtin", STRING_ADD_RIGHT, |
+ "sub_builtin", SUB, |
+ "sub_strong_builtin", SUB_STRONG, |
+ "to_name_builtin", TO_NAME, |
+ "to_number_builtin", TO_NUMBER, |
+ "to_string_builtin", TO_STRING, |
+]); |
%InstallToContext([ |
"concat_iterable_to_array", ConcatIterableToArray, |