ByteCodeCompilerWithBreakpointSupport.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 16 Apr 2013 09:22:02 +0200
changeset 3122 986f567aafd8
parent 2799 37dfd9b9d9ee
child 3198 47a691bea790
permissions -rw-r--r--
automatically generated by browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
	      All Rights Reserved
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
 hereby transferred.
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
"{ Package: 'stx:libcomp' }"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
ByteCodeCompiler subclass:#ByteCodeCompilerWithBreakpointSupport
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
	instanceVariableNames:'breakpoints'
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
	classVariableNames:''
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
	poolDictionaries:''
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
	category:'System-Compiler-Debugging'
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
!ByteCodeCompilerWithBreakpointSupport class methodsFor:'documentation'!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
copyright
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
 COPYRIGHT (c) 2006 by eXept Software AG
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
	      All Rights Reserved
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
 hereby transferred.
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
documentation
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
    I'm an experimental compiler class that supports
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
    breakpoints. Once tested, the code will be merged
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
    to ByteCodeCompiler.
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
    [author:]
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
        Jan Vrany <jan.vrany@fit.cvut.cz>
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    46
    [instance variables:]
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    47
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
    [class variables:]
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    49
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    50
    [see also:]
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    52
"
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    53
! !
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    54
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    55
!ByteCodeCompilerWithBreakpointSupport methodsFor:'adding breakpoint'!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    56
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    57
possiblyWrapABreakPointAround:aBlock
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    58
    "refactored Jan's original code; changed to not wrap an already wrapped expression"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    59
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    60
    | expr bpnt pos |
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    61
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    62
    pos := tokenPosition ? source position.
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    63
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    64
    [
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    65
        breakpoints notEmpty
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    66
        and:[breakpoints first position < pos]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    67
    ] whileTrue:[
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    68
        bpnt := breakpoints removeFirst
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    69
    ].
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    70
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    71
    expr := aBlock value.
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    72
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    73
    bpnt isNil ifTrue:[^expr].
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    74
    expr isBreakPointNode ifTrue:[^expr].
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    75
    bpnt isReached:true.
2799
37dfd9b9d9ee changed: #possiblyWrapABreakPointAround:
Claus Gittinger <cg@exept.de>
parents: 2758
diff changeset
    76
37dfd9b9d9ee changed: #possiblyWrapABreakPointAround:
Claus Gittinger <cg@exept.de>
parents: 2758
diff changeset
    77
    "/ Transcript show:'adding breakpoint '; show:bpnt; show:' before: '; showCR:expr.
37dfd9b9d9ee changed: #possiblyWrapABreakPointAround:
Claus Gittinger <cg@exept.de>
parents: 2758
diff changeset
    78
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    79
    ^ BreakpointNode new
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    80
        breakpoint: bpnt;
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    81
        expression: expr;
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    82
        lineNumber:(bpnt line ? tokenLineNr);
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    83
        yourself
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    84
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    85
    "Created: / 05-07-2011 / 21:11:19 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    86
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    87
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    88
removeMissedBreakpointsBefore:aPosition
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    89
    [
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    90
        breakpoints notEmpty
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    91
        and:[breakpoints first position < aPosition]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    92
    ] whileTrue:[
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    93
        breakpoints removeFirst
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    94
    ].
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    95
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    96
    "Created: / 05-07-2011 / 23:13:25 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    97
! !
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
    98
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    99
!ByteCodeCompilerWithBreakpointSupport methodsFor:'parsing-expressions'!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   100
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   101
binaryExpression
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   102
    ^ self possiblyWrapABreakPointAround:[super binaryExpression]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   103
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   104
    "Created: / 05-07-2011 / 23:08:43 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   105
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   106
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   107
binaryExpressionFor:aReceiver
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   108
    ^ self possiblyWrapABreakPointAround:[super binaryExpressionFor:aReceiver]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   109
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   110
    "Created: / 05-07-2011 / 21:10:53 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   111
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   112
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   113
block
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   114
    |blockNode|
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   115
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   116
    self removeMissedBreakpointsBefore:source position.
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   117
    blockNode := super block.
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   118
    self removeMissedBreakpointsBefore:blockNode endPosition+2.
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   119
    ^ blockNode
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   120
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   121
    "Created: / 05-07-2011 / 22:56:19 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   122
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   123
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   124
expression
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   125
    ^ self possiblyWrapABreakPointAround:[super expression]
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   126
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   127
    "Created: / 16-06-2011 / 14:58:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   128
    "Modified: / 05-07-2011 / 21:11:38 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   129
!
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   130
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   131
primary
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   132
    ^ self possiblyWrapABreakPointAround:[super primary]
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   133
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   134
    "Created: / 16-06-2011 / 14:58:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   135
    "Modified: / 05-07-2011 / 21:11:38 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   136
    "Created: / 05-07-2011 / 23:05:23 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   137
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   138
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   139
unaryExpression
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   140
    ^ self possiblyWrapABreakPointAround:[super unaryExpression]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   141
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   142
    "Created: / 05-07-2011 / 23:08:54 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   143
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   144
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   145
unaryExpressionFor:aReceiver
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   146
    ^ self possiblyWrapABreakPointAround:[super unaryExpressionFor:aReceiver]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   147
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   148
    "Created: / 05-07-2011 / 21:15:30 / cg"
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   149
! !
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   150
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   151
!ByteCodeCompilerWithBreakpointSupport methodsFor:'private'!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   152
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   153
breakpoints:aCollection
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   154
    breakpoints := aCollection copy sort:[:a :b|a position < b position].
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   155
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   156
    "Created: / 16-06-2011 / 14:35:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   157
    "Created: / 05-07-2011 / 21:37:28 / cg"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   158
!
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   159
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   160
notifying: anObject
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   161
    super notifying: anObject.
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   162
    anObject notNil ifTrue:[
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   163
        breakpoints isNil ifTrue:[
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   164
            self breakpoints:(anObject perform: #breakpoints ifNotUnderstood:#()).
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   165
        ]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   166
    ]
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   167
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   168
    "Created: / 16-06-2011 / 14:35:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   169
    "Modified: / 05-07-2011 / 21:48:37 / cg"
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   170
! !
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   171
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   172
!ByteCodeCompilerWithBreakpointSupport class methodsFor:'documentation'!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   173
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   174
version_CVS
2799
37dfd9b9d9ee changed: #possiblyWrapABreakPointAround:
Claus Gittinger <cg@exept.de>
parents: 2758
diff changeset
   175
    ^ '$Header: /cvs/stx/stx/libcomp/ByteCodeCompilerWithBreakpointSupport.st,v 1.4 2012-01-27 13:19:41 cg Exp $'
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   176
!
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   177
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   178
version_SVN
2537
72fde5f496de fixes to make testSuite pass
Claus Gittinger <cg@exept.de>
parents: 2498
diff changeset
   179
    ^ '§ Id §'
2498
43bfd25f2552 Initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   180
! !