OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 key->Unuse(); | 1143 key->Unuse(); |
1144 } else if (!cgen()->allocator()->is_used(rdx) || | 1144 } else if (!cgen()->allocator()->is_used(rdx) || |
1145 (receiver->is_register() && receiver->reg().is(rdx))) { | 1145 (receiver->is_register() && receiver->reg().is(rdx))) { |
1146 if (!cgen()->allocator()->is_used(rdx)) { | 1146 if (!cgen()->allocator()->is_used(rdx)) { |
1147 receiver->ToRegister(rdx); | 1147 receiver->ToRegister(rdx); |
1148 } | 1148 } |
1149 MoveResultsToRegisters(key, value, rcx, rax); | 1149 MoveResultsToRegisters(key, value, rcx, rax); |
1150 receiver->Unuse(); | 1150 receiver->Unuse(); |
1151 } else { | 1151 } else { |
1152 // Otherwise, no register is free, and no value is in the correct place. | 1152 // Otherwise, no register is free, and no value is in the correct place. |
1153 // We have one of the two circular permutations of eax, ecx, edx. | 1153 // We have one of the two circular permutations of rax, rcx, rdx. |
1154 ASSERT(value->is_register()); | 1154 ASSERT(value->is_register()); |
1155 if (value->reg().is(rcx)) { | 1155 if (value->reg().is(rcx)) { |
1156 __ xchg(rax, rdx); | 1156 __ xchg(rax, rdx); |
1157 __ xchg(rax, rcx); | 1157 __ xchg(rax, rcx); |
1158 } else { | 1158 } else { |
1159 __ xchg(rax, rcx); | 1159 __ xchg(rax, rcx); |
1160 __ xchg(rax, rdx); | 1160 __ xchg(rax, rdx); |
1161 } | 1161 } |
1162 value->Unuse(); | 1162 value->Unuse(); |
1163 key->Unuse(); | 1163 key->Unuse(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 Adjust(kHandlerSize - 1); | 1256 Adjust(kHandlerSize - 1); |
1257 __ PushTryHandler(IN_JAVASCRIPT, type); | 1257 __ PushTryHandler(IN_JAVASCRIPT, type); |
1258 } | 1258 } |
1259 | 1259 |
1260 | 1260 |
1261 #undef __ | 1261 #undef __ |
1262 | 1262 |
1263 } } // namespace v8::internal | 1263 } } // namespace v8::internal |
1264 | 1264 |
1265 #endif // V8_TARGET_ARCH_X64 | 1265 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |