Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2429)

Delta Between Two Patch Sets: cgen/templates/instr-targets.h.impl

Issue 14757: INCA: Inline Caching meets Quickening in Python 3.3
Left Patch Set: Created 1 year, 1 month ago
Right Patch Set: Created 1 year, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « cgen/templates/inlined/PyRangeIter_Type ('k') | cgen/templates/opcode-defs.h.impl » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 <%! 1 <%!
2 import instructions 2 import instructions
3 %>\ 3 %>\
4 4
5 static void *opcode_targets[ ${ len(instr_set.set) } ]= { 5 static void *opcode_targets[ ${ len(instr_set.set) } ]= {
6 % for opcode, instr_obj in enumerate(instr_set): 6 % for opcode, instr_obj in enumerate(instr_set):
7 % if type(instr_obj) == instructions.UnknownInstr or instr_obj.id == 'NOP ': 7 % if type(instr_obj) == instructions.UnknownInstr or instr_obj.id == 'NOP ':
8 &&${ "_unknown_opcode".ljust(instr_set.max_ident_len + 15 + 7) }, // ${op code} 8 &&${ "_unknown_opcode".ljust(instr_set.max_ident_len + 15 + 7) }, // ${op code}
9 % else: 9 % else:
10 &&TARGET_${instr_obj.id.ljust( instr_set.max_ident_len + 15)}, // ${opcod e} 10 &&TARGET_${instr_obj.id.ljust( instr_set.max_ident_len + 15)}, // ${opcod e}
11 % endif 11 % endif
12 % endfor 12 % endfor
13 }; 13 };
14 14
15 15
16 static void *opcode_no_dispatch_targets[ ${ len(instr_set.set) } ]= { 16 static void *opcode_no_dispatch_targets[ ${ len(instr_set.set) } ]= {
17 % for opcode, instr_obj in enumerate(instr_set): 17 % for opcode, instr_obj in enumerate(instr_set):
18 % if type(instr_obj) == instructions.UnknownInstr or instr_obj.id == 'NOP ': 18 % if type(instr_obj) == instructions.UnknownInstr or instr_obj.id == 'NOP ':
19 &&${ "_unknown_opcode".ljust(instr_set.max_ident_len + 15 + 7) }, // ${op code} 19 &&${ "_unknown_opcode".ljust(instr_set.max_ident_len + 15 + 7) }, // ${op code}
20 % else: 20 % else:
21 &&TARGET_${ instr_obj.id.ljust( instr_set.max_ident_len + 15).strip() }_S KIP_DISPATCH, // ${opcode} 21 &&TARGET_${ instr_obj.id.ljust( instr_set.max_ident_len + 15).strip() }_S KIP_DISPATCH, // ${opcode}
22 % endif 22 % endif
23 % endfor 23 % endfor
24 }; 24 };
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7