Skip to content

Commit

Permalink
it is inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Feb 2, 2024
1 parent 4cf1e2e commit 237232e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnovm/pkg/gnolang/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ const (
maxAssignmentOperation = BAND_NOT_ASSIGN
)

// isAssignmentOperation determines if the Word is an assignment operation;
// ie, a combination of an assignment and a binary operator like ADD_ASSIGN.
func (w Word) isAssignmentOperation() bool {
return w >= minAssignmentOperation && w <= maxAssignmentOperation
}
Expand All @@ -126,7 +128,6 @@ func (w Word) isAssignmentOperation() bool {
//
// If w is not an assignment operation, ILLEGAL is returned.
func (w Word) convertAssignmentOperation() Word {
// XXX: is this inlined? if not, would lookup table make it inlined / better?
switch w {
case ADD_ASSIGN:
return ADD
Expand Down

0 comments on commit 237232e

Please sign in to comment.