|
@@ -2,16 +2,16 @@ define(["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict"
|
|
|
if(!$boot.nilAsReceiver)$boot.nilAsReceiver=$boot.nil;
|
|
|
var $core=$boot.api,nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
|
|
|
if(!$boot.nilAsClass)$boot.nilAsClass=$boot.dnu;
|
|
|
-$core.addPackage('Benchfib');
|
|
|
+$core.addPackage("Benchfib");
|
|
|
$core.packages["Benchfib"].innerEval = function (expr) { return eval(expr); };
|
|
|
$core.packages["Benchfib"].transport = {"type":"amd","amdNamespace":"amber/legacy"};
|
|
|
|
|
|
-$core.addClass('Benchfib', $globals.Object, [], 'Benchfib');
|
|
|
+$core.addClass("Benchfib", $globals.Object, [], "Benchfib");
|
|
|
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "main",
|
|
|
-protocol: 'not yet classified',
|
|
|
+protocol: "not yet classified",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var result;
|
|
@@ -37,7 +37,7 @@ $globals.Benchfib.klass);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "benchFib",
|
|
|
-protocol: '*Benchfib',
|
|
|
+protocol: "*Benchfib",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -78,7 +78,7 @@ $globals.Number);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "benchmark",
|
|
|
-protocol: '*Benchfib',
|
|
|
+protocol: "*Benchfib",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var size,flags,prime,k,count;
|
|
@@ -173,7 +173,7 @@ $globals.Number);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "jsbenchFib",
|
|
|
-protocol: '*Benchfib',
|
|
|
+protocol: "*Benchfib",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -200,7 +200,7 @@ $globals.Number);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "jsbenchmark",
|
|
|
-protocol: '*Benchfib',
|
|
|
+protocol: "*Benchfib",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -245,7 +245,7 @@ $globals.Number);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "jstinyBenchmarks",
|
|
|
-protocol: '*Benchfib',
|
|
|
+protocol: "*Benchfib",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var t1,t2,r,n1,n2;
|
|
@@ -366,7 +366,7 @@ $globals.Number);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "tinyBenchmarks",
|
|
|
-protocol: '*Benchfib',
|
|
|
+protocol: "*Benchfib",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var t1,t2,r,n1,n2;
|