Skip to content

Commit

Permalink
Merge pull request #857 from chiragpat/debug_fix
Browse files Browse the repository at this point in the history
Fix debug issues reported in #846
  • Loading branch information
chadhietala committed Oct 2, 2018
2 parents 7f041fd + 73a3967 commit 7b41a7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/@glimmer/bundle-compiler/lib/debug-constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { WriteOnlyConstants } from '@glimmer/program';

export default class DebugConstants extends WriteOnlyConstants {
getNumber(value: number): number {
return this.numbers[value];
}

getString(value: number): string {
return this.strings[value];
}
Expand Down
1 change: 1 addition & 0 deletions packages/@glimmer/opcode-compiler/lib/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ function decodePrimitive(primitive: number, constants: DebugConstants): Primitiv
return undefined;
}
case PrimitiveType.NEGATIVE:
case PrimitiveType.BIG_NUM:
return constants.getNumber(value);
default:
throw unreachable();
Expand Down
3 changes: 2 additions & 1 deletion packages/@glimmer/vm/lib/-debug-strip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ OPCODE_METADATA(Op.BindEvalScope, {

OPCODE_METADATA(Op.InvokeComponentLayout, {
name: 'InvokeComponentLayout',
stackChange: -2,
ops: [Register('state')],
stackChange: 0,
});

OPCODE_METADATA(Op.PopulateLayout, {
Expand Down

0 comments on commit 7b41a7b

Please sign in to comment.