Browse Source

Fix for faulty inlining of =.

Göran Krampe 13 năm trước cách đây
mục cha
commit
b36de2ebc6
3 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 1 1
      js/Compiler.deploy.js
  2. 1 1
      js/Compiler.js
  3. 2 2
      st/Compiler.st

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
js/Compiler.deploy.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
js/Compiler.js


+ 2 - 2
st/Compiler.st

@@ -611,7 +611,7 @@ inlineLiteral: aSelector receiverNode: anObject argumentNodes: aCollection
 	(aSelector = '=') ifTrue: [
           	(self isNode: anObject ofClass: Number) ifTrue: [
                   	self visit: anObject.
-                  	stream nextPutAll: ' = '.
+                  	stream nextPutAll: ' == '.
                 	self visit: aCollection first.
                 	inlined := true]].
 
@@ -1023,6 +1023,6 @@ Object subclass: #DoIt
 
 !DoIt methodsFor: ''!
 
-doIt ^[Compiler performOptimizations: false.] value
+doIt ^[1=2] value
 ! !
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác