-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmemory.js
More file actions
33 lines (31 loc) · 878 Bytes
/
memory.js
File metadata and controls
33 lines (31 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import MemoryCell from "./memoryCell.js";
export default {
template: `
<div>
<div v-if="stackFrames !== undefined" v-for="stackFrame in stackFrames" class="stack-frame">
<template v-if="stackFrame.frameName !== null">
<hr/>
<div class="frame-name">
<h4 :title="stackFrame.frameName">{{ stackFrame.frameName }}</h4>
</div>
</template>
<template v-else>
<div class="frame-name"></div>
</template>
<div class="cells-container">
<memory-cell v-for="variable in stackFrame.localVars" :key="variable[1][1]" :variable="variable"></memory-cell>
</div>
</div>
<memory-cell v-if="heapVars !== undefined" v-for="variable in heapVars" :variable="variable"></memory-cell>
</div>
`,
data() {
return {
componentName: 'Memory'
};
},
props: ['stackFrames', 'heapVars'],
components: {
MemoryCell
}
}