Index: src/js/runtime.js |
diff --git a/src/js/runtime.js b/src/js/runtime.js |
index d584100bebb01beb2d16a29abba4b2ef4a108acf..6fe6ad80cd9d714177ffaacb6f98159221bc0f8c 100644 |
--- a/src/js/runtime.js |
+++ b/src/js/runtime.js |
@@ -216,6 +216,20 @@ function ToPositiveInteger(x, rangeErrorIndex) { |
return i; |
} |
+ |
+function MaxSimple(a, b) { |
+ return a > b ? a : b; |
+} |
+ |
+ |
+function MinSimple(a, b) { |
+ return a > b ? b : a; |
+} |
+ |
+ |
+%SetForceInlineFlag(MaxSimple); |
+%SetForceInlineFlag(MinSimple); |
+ |
//---------------------------------------------------------------------------- |
// NOTE: Setting the prototype for Array must take place as early as |
@@ -229,9 +243,11 @@ function ToPositiveInteger(x, rangeErrorIndex) { |
// Exports |
utils.Export(function(to) { |
- to.ToPositiveInteger = ToPositiveInteger; |
+ to.MaxSimple = MaxSimple; |
+ to.MinSimple = MinSimple; |
to.SameValue = SameValue; |
to.SameValueZero = SameValueZero; |
+ to.ToPositiveInteger = ToPositiveInteger; |
}); |
%InstallToContext([ |