Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19770 FFIExternalStructurePlatformTests>>#testStructureHasCorrectOffsets32bits is failing on the bootstrapped image https://pharo.fogbugz.com/f/cases/19770 19761 Debugger wrong temp var value after multiple step through block https://pharo.fogbugz.com/f/cases/19761 http://files.pharo.org/image/60/60417.zip
- Loading branch information
Jenkins Build Server
authored and
ci
committed
Feb 28, 2017
1 parent
17e26d8
commit 4e8d884
Showing
13 changed files
with
54 additions
and
32 deletions.
There are no files selected for viewing
7 changes: 2 additions & 5 deletions
7
...Compiler-Core.package/OCAbstractMethodScope.class/instance/lookup/lookupVar_inContext_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
lookupVar: name inContext: aContext | ||
"We lookup a variable in a context. If it not in this context, we look in the outer context using the corresponding outer scope" | ||
|
||
| variable theValue outerContext | | ||
| variable theValue | | ||
variable := self | ||
variableNamed: name | ||
ifAbsent: [ | ||
"if we ask for a method, not a block context, do not ask for outerContext" | ||
outerContext := aContext outerContext ifNil: [ aContext ]. | ||
^self outerScope lookupVar: name inContext: outerContext ]. | ||
ifAbsent: [ ^self outerScopeLookupVar: name inContext: aContext]. | ||
theValue := variable readFromContext: aContext scope: self. | ||
^ theValue |
6 changes: 6 additions & 0 deletions
6
OpalCompiler-Core.package/OCBlockScope.class/instance/lookup/nextOuterScopeContextOf_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
nextOuterScopeContextOf: aContext | ||
|
||
"Returns the next context to lookup a variable name from within outer scope. | ||
If it is block context then we return outer context for lookup. | ||
But if it is method context lookup will continue in same context but within outer scope" | ||
^ aContext outerContext ifNil: [ aContext ] |
2 changes: 1 addition & 1 deletion
2
...ompiler-Core.package/OCBlockScope.class/instance/lookup/outerScopeLookupVar_inContext_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
outerScopeLookupVar: name inContext: aContext | ||
^ self outerScope | ||
lookupVar: name | ||
inContext: (self nextLexicalContextOf: aContext) | ||
inContext: (self nextOuterScopeContextOf: aContext) |
6 changes: 6 additions & 0 deletions
6
...iler-Core.package/OCOptimizedBlockScope.class/instance/lookup/nextOuterScopeContextOf_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
nextOuterScopeContextOf: aContext | ||
|
||
"Returns the next context to lookup a variable name from within outer scope. | ||
For inlined BlockClosure which I represent it will be same context because inlined blocks do not produce extra contexts on stack" | ||
^ aContext |
6 changes: 6 additions & 0 deletions
6
...mpMappingTest.class/instance/tests/fetchArgFromOptimizedBlockInsideFullBlock_extraArg_.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fetchArgFromOptimizedBlockInsideFullBlock: anArg extraArg: anotherArg | ||
|
||
| result | | ||
self class withAllSubclassesDo: [ :each | | ||
result := anArg = anArg ifTrue: [ anotherArg value. thisContext tempNamed: #anArg ]]. | ||
^result |
9 changes: 9 additions & 0 deletions
9
...tTempMappingTest.class/instance/tests/testAccessingArgOfOuterBlockFromAnotherDeepBlock.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
testAccessingArgOfOuterBlockFromAnotherDeepBlock | ||
|
||
| actual | | ||
actual := [:outerArg | | ||
outerArg asString. | ||
[ :innerArg | innerArg asString. thisContext tempNamed: #outerArg ] value: #innerValue. | ||
] value: #outerValue. | ||
|
||
self assert: actual equals: #outerValue |
5 changes: 5 additions & 0 deletions
5
...xtTempMappingTest.class/instance/tests/testAccessingMethodArgFromOptimizedBlockContext.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
testAccessingMethodArgFromOptimizedBlockContext | ||
|
||
| actual | | ||
actual := self fetchArgFromOptimizedBlockInsideFullBlock: #argValue extraArg: #anotherArg. | ||
self assert: actual equals: #argValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
ScriptLoader60.package/ScriptLoader.class/instance/pharo - updates/update60416.st
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
ScriptLoader60.package/ScriptLoader.class/instance/pharo - updates/update60417.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
update60417 | ||
"self new update60417" | ||
self withUpdateLog: '19770 FFIExternalStructurePlatformTests>>#testStructureHasCorrectOffsets32bits is failing on the bootstrapped image | ||
https://pharo.fogbugz.com/f/cases/19770 | ||
19761 Debugger wrong temp var value after multiple step through block | ||
https://pharo.fogbugz.com/f/cases/19761'. | ||
self loadTogether: self script60417 merge: false. | ||
self flushCaches. |
11 changes: 4 additions & 7 deletions
11
ScriptLoader60.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
commentForCurrentUpdate | ||
^ '19732 Reenable Catalog loading in Spotter and fix confusing/hidden setting for it | ||
https://pharo.fogbugz.com/f/cases/19732 | ||
^ '19770 FFIExternalStructurePlatformTests>>#testStructureHasCorrectOffsets32bits is failing on the bootstrapped image | ||
https://pharo.fogbugz.com/f/cases/19770 | ||
19769 BaselineOfIDE needs update | ||
https://pharo.fogbugz.com/f/cases/19769 | ||
19771 remove debugging "Alive" report during the bootstrap initialization | ||
https://pharo.fogbugz.com/f/cases/19771' | ||
19761 Debugger wrong temp var value after multiple step through block | ||
https://pharo.fogbugz.com/f/cases/19761' |
1 change: 1 addition & 0 deletions
1
...ternalStructurePlatformTests.class/instance/tests/testStructureHasCorrectOffsets32bits.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
testStructureHasCorrectOffsets32bits | ||
self is32bits ifFalse: [ ^ self skip ]. | ||
|
||
FFITestStructureByPlatform compiledSpec. "Ensure fields are initialized" | ||
self assert: (FFITestStructureByPlatform classPool at: #OFFSET_LONG) equals: 1. | ||
self assert: (FFITestStructureByPlatform classPool at: #OFFSET_POINTER) equals: 5 |
1 change: 1 addition & 0 deletions
1
...ternalStructurePlatformTests.class/instance/tests/testStructureHasCorrectOffsets64bits.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
testStructureHasCorrectOffsets64bits | ||
self is64bits ifFalse: [ ^ self skip ]. | ||
|
||
FFITestStructureByPlatform compiledSpec. "Ensure fields are initialized" | ||
self assert: (FFITestStructureByPlatform classPool at: #OFFSET_LONG) equals: 1. | ||
self assert: (FFITestStructureByPlatform classPool at: #OFFSET_POINTER) equals: 9 |