OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 Loading... |
260 Label done; | 260 Label done; |
261 | 261 |
262 __ Push(ra); | 262 __ Push(ra); |
263 | 263 |
264 { | 264 { |
265 __ BlockTrampolinePoolFor(kNumCases + 6 + 1); | 265 __ BlockTrampolinePoolFor(kNumCases + 6 + 1); |
266 PredictableCodeSizeScope predictable( | 266 PredictableCodeSizeScope predictable( |
267 masm, kNumCases * kPointerSize + ((6 + 1) * Assembler::kInstrSize)); | 267 masm, kNumCases * kPointerSize + ((6 + 1) * Assembler::kInstrSize)); |
268 | 268 |
269 __ addiupc(at, 6 + 1); | 269 __ addiupc(at, 6 + 1); |
270 __ lsa(at, at, a0, 2); | 270 __ Lsa(at, at, a0, 2); |
271 __ lw(at, MemOperand(at)); | 271 __ lw(at, MemOperand(at)); |
272 __ jalr(at); | 272 __ jalr(at); |
273 __ nop(); // Branch delay slot nop. | 273 __ nop(); // Branch delay slot nop. |
274 __ bc(&done); | 274 __ bc(&done); |
275 // A nop instruction must be generated by the forbidden slot guard | 275 // A nop instruction must be generated by the forbidden slot guard |
276 // (Assembler::dd(Label*)). | 276 // (Assembler::dd(Label*)). |
277 for (int i = 0; i < kNumCases; ++i) { | 277 for (int i = 0; i < kNumCases; ++i) { |
278 __ dd(&labels[i]); | 278 __ dd(&labels[i]); |
279 } | 279 } |
280 } | 280 } |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 int32_t input = *i; | 460 int32_t input = *i; |
461 CHECK_EQ(static_cast<double>(input), | 461 CHECK_EQ(static_cast<double>(input), |
462 run_Cvt<int32_t>(input, [](MacroAssembler* masm) { | 462 run_Cvt<int32_t>(input, [](MacroAssembler* masm) { |
463 __ cvt_d_w(f0, f4); | 463 __ cvt_d_w(f0, f4); |
464 __ Trunc_w_d(f2, f0); | 464 __ Trunc_w_d(f2, f0); |
465 })); | 465 })); |
466 } | 466 } |
467 } | 467 } |
468 | 468 |
469 #undef __ | 469 #undef __ |
OLD | NEW |