소스 검색

amber/lang, pre-fetch of smalltalk.js

another set amber/lang introduced, with compiler, import/export
and sunit. This allows to load the whole language
without any IDE (for remote use etc.).

Also, smalltalk.js (and deploy.js in some cases) is
mentioned in dependencies redundantly, to load them sooner,
thus loading boot.js sooner and start loading their dependencies
sooner (not to have too deep dependency tree, thus having less
start-loading-another-set-of-dependencies phases).
Herbert Vojčík 10 년 전
부모
커밋
028b99f25e
3개의 변경된 파일24개의 추가작업 그리고 29개의 파일을 삭제
  1. 4 15
      support/devel.js
  2. 3 14
      support/helios.js
  3. 17 0
      support/lang.js

+ 4 - 15
support/devel.js

@@ -1,5 +1,7 @@
 define([
-	'./deploy',
+	'amber_vm/smalltalk', // pre-fetch, dep of ./deploy
+	'./deploy', // pre-fetch, dep of ./lang
+	'./lang',
 	'jquery-ui',
 	'amber_lib/jquery-tabby/jquery.textarea',
 	'amber_lib/codemirror/lib/codemirror',
@@ -10,20 +12,7 @@ define([
 	'css!amber_lib/codemirror/addon/hint/show-hint',
 	'css!amber_inc/CodeMirror/amber',
 	'css!amber_css/amber',
-	'amber_core/SUnit',
-	'amber_core/Kernel-ImportExport',
-	'amber_core/Compiler-Exceptions',
-	'amber_core/Compiler-Core',
-	'amber_core/Compiler-AST',
-	'amber_core/Compiler-Semantic',
-	'amber_core/Compiler-IR',
-	'amber_core/Compiler-Inlining',
-	'amber_core/Compiler-Interpreter',
-	'amber_core/Compiler-Tests',
-	'amber_vm/parser',
 	'amber_core/IDE',
 	'amber_core/Examples',
-	'amber_core/Benchfib',
-	'amber_core/Kernel-Tests',
-	'amber_core/SUnit-Tests'
+	'amber_core/Benchfib'
 ], function (smalltalk) { return smalltalk; });

+ 3 - 14
support/helios.js

@@ -1,5 +1,7 @@
 define([
-	'./deploy',
+	'amber_vm/smalltalk', // pre-fetch, dep of ./deploy
+	'./deploy', // pre-fetch, dep of ./lang
+	'./lang',
 	'jquery-ui',
 	'amber_lib/jquery-tabby/jquery.textarea',
 	'amber_lib/bootstrap/js/bootstrap',
@@ -12,22 +14,9 @@ define([
 	'css!amber_lib/codemirror/addon/hint/show-hint',
 	'css!amber_inc/CodeMirror/amber',
 	'css!amber_css/helios',
-	'amber_core/SUnit',
-	'amber_core/Kernel-ImportExport',
-	'amber_core/Compiler-Exceptions',
-	'amber_core/Compiler-Core',
-	'amber_core/Compiler-AST',
-	'amber_core/Compiler-Semantic',
-	'amber_core/Compiler-IR',
-	'amber_core/Compiler-Inlining',
-	'amber_core/Compiler-Interpreter',
-	'amber_core/Compiler-Tests',
-	'amber_vm/parser',
 	'amber_core/IDE',
 	'amber_core/Examples',
 	'amber_core/Benchfib',
-	'amber_core/Kernel-Tests',
-	'amber_core/SUnit-Tests',
 	'amber_core/Spaces',
 	'amber_core/Helios-Core',
 	'amber_core/Helios-Exceptions',

+ 17 - 0
support/lang.js

@@ -0,0 +1,17 @@
+define([
+	'amber_vm/smalltalk', // pre-fetch, dep of ./deploy
+	'./deploy',
+	'amber_vm/parser',
+	'amber_core/Kernel-ImportExport',
+	'amber_core/Compiler-Exceptions',
+	'amber_core/Compiler-Core',
+	'amber_core/Compiler-AST',
+	'amber_core/Compiler-Semantic',
+	'amber_core/Compiler-IR',
+	'amber_core/Compiler-Inlining',
+	'amber_core/Compiler-Interpreter',
+	'amber_core/SUnit',
+	'amber_core/Compiler-Tests',
+	'amber_core/Kernel-Tests',
+	'amber_core/SUnit-Tests'
+], function (smalltalk) { return smalltalk; });