Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Side by Side Diff: src/x64/disasm-x64.cc

Issue 2804005: [Isolates] Removal of miscellaneous statics from the backend. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/virtual-frame-light-inl.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void InstructionTable::AddJumpConditionalShort() { 260 void InstructionTable::AddJumpConditionalShort() {
261 for (byte b = 0x70; b <= 0x7F; b++) { 261 for (byte b = 0x70; b <= 0x7F; b++) {
262 InstructionDesc* id = &instructions_[b]; 262 InstructionDesc* id = &instructions_[b];
263 ASSERT_EQ(NO_INSTR, id->type); // Information not already entered 263 ASSERT_EQ(NO_INSTR, id->type); // Information not already entered
264 id->mnem = NULL; // Computed depending on condition code. 264 id->mnem = NULL; // Computed depending on condition code.
265 id->type = JUMP_CONDITIONAL_SHORT_INSTR; 265 id->type = JUMP_CONDITIONAL_SHORT_INSTR;
266 } 266 }
267 } 267 }
268 268
269 269
270 // TODO(isolates): This appears to act morally as a constant. Is it safe?
270 static InstructionTable instruction_table; 271 static InstructionTable instruction_table;
271 272
273
272 static InstructionDesc cmov_instructions[16] = { 274 static InstructionDesc cmov_instructions[16] = {
273 {"cmovo", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 275 {"cmovo", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
274 {"cmovno", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 276 {"cmovno", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
275 {"cmovc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 277 {"cmovc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
276 {"cmovnc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 278 {"cmovnc", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
277 {"cmovz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 279 {"cmovz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
278 {"cmovnz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 280 {"cmovnz", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
279 {"cmovna", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 281 {"cmovna", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
280 {"cmova", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 282 {"cmova", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
281 {"cmovs", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false}, 283 {"cmovs", TWO_OPERANDS_INSTR, REG_OPER_OP_ORDER, false},
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 }; 1588 };
1587 1589
1588 1590
1589 static const char* xmm_regs[16] = { 1591 static const char* xmm_regs[16] = {
1590 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", 1592 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7",
1591 "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15" 1593 "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15"
1592 }; 1594 };
1593 1595
1594 1596
1595 const char* NameConverter::NameOfAddress(byte* addr) const { 1597 const char* NameConverter::NameOfAddress(byte* addr) const {
1596 static v8::internal::EmbeddedVector<char, 32> tmp_buffer; 1598 v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr);
1597 v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr); 1599 return tmp_buffer_.start();
1598 return tmp_buffer.start();
1599 } 1600 }
1600 1601
1601 1602
1602 const char* NameConverter::NameOfConstant(byte* addr) const { 1603 const char* NameConverter::NameOfConstant(byte* addr) const {
1603 return NameOfAddress(addr); 1604 return NameOfAddress(addr);
1604 } 1605 }
1605 1606
1606 1607
1607 const char* NameConverter::NameOfCPURegister(int reg) const { 1608 const char* NameConverter::NameOfCPURegister(int reg) const {
1608 if (0 <= reg && reg < 16) 1609 if (0 <= reg && reg < 16)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1670 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1670 fprintf(f, " "); 1671 fprintf(f, " ");
1671 } 1672 }
1672 fprintf(f, " %s\n", buffer.start()); 1673 fprintf(f, " %s\n", buffer.start());
1673 } 1674 }
1674 } 1675 }
1675 1676
1676 } // namespace disasm 1677 } // namespace disasm
1677 1678
1678 #endif // V8_TARGET_ARCH_X64 1679 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/virtual-frame-light-inl.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698