| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 void InstructionTable::AddJumpConditionalShort() { | 263 void InstructionTable::AddJumpConditionalShort() { |
| 264 for (byte b = 0x70; b <= 0x7F; b++) { | 264 for (byte b = 0x70; b <= 0x7F; b++) { |
| 265 InstructionDesc* id = &instructions_[b]; | 265 InstructionDesc* id = &instructions_[b]; |
| 266 ASSERT_EQ(NO_INSTR, id->type); // Information not already entered | 266 ASSERT_EQ(NO_INSTR, id->type); // Information not already entered |
| 267 id->mnem = NULL; // Computed depending on condition code. | 267 id->mnem = NULL; // Computed depending on condition code. |
| 268 id->type = JUMP_CONDITIONAL_SHORT_INSTR; | 268 id->type = JUMP_CONDITIONAL_SHORT_INSTR; |
| 269 } | 269 } |
| 270 } | 270 } |
| 271 | 271 |
| 272 | 272 |
| 273 static v8::internal::LazyInstance<InstructionTable>::type instruction_table = | 273 static v8::internal::LazyInstance< |
| 274 LAZY_INSTANCE_INITIALIZER; | 274 InstructionTable, |
| 275 v8::internal::DefaultConstructTrait<InstructionTable>, |
| 276 v8::internal::SingleThreadInitOnceTrait>::type instruction_table = |
| 277 LAZY_INSTANCE_INITIALIZER; |
| 275 | 278 |
| 276 | 279 |
| 277 static InstructionDesc cmov_instructions[16] = { | 280 static InstructionDesc cmov_instructions[16] = { |
| 278 {"cmovo", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 281 {"cmovo", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| 279 {"cmovno", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 282 {"cmovno", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| 280 {"cmovc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 283 {"cmovc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| 281 {"cmovnc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 284 {"cmovnc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| 282 {"cmovz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 285 {"cmovz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| 283 {"cmovnz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 286 {"cmovnz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| 284 {"cmovna", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, | 287 {"cmovna", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, |
| (...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1843 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { | 1846 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { |
| 1844 fprintf(f, " "); | 1847 fprintf(f, " "); |
| 1845 } | 1848 } |
| 1846 fprintf(f, " %s\n", buffer.start()); | 1849 fprintf(f, " %s\n", buffer.start()); |
| 1847 } | 1850 } |
| 1848 } | 1851 } |
| 1849 | 1852 |
| 1850 } // namespace disasm | 1853 } // namespace disasm |
| 1851 | 1854 |
| 1852 #endif // V8_TARGET_ARCH_X64 | 1855 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |