| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 2934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2945 __ bne(CMPRES1, ZR, slow_path->entry_label()); | 2945 __ bne(CMPRES1, ZR, slow_path->entry_label()); |
| 2946 switch (op_kind()) { | 2946 switch (op_kind()) { |
| 2947 case Token::kADD: | 2947 case Token::kADD: |
| 2948 __ AdduDetectOverflow(result, left, right, CMPRES1); | 2948 __ AdduDetectOverflow(result, left, right, CMPRES1); |
| 2949 __ bltz(CMPRES1, slow_path->entry_label()); | 2949 __ bltz(CMPRES1, slow_path->entry_label()); |
| 2950 break; | 2950 break; |
| 2951 case Token::kSUB: | 2951 case Token::kSUB: |
| 2952 __ SubuDetectOverflow(result, left, right, CMPRES1); | 2952 __ SubuDetectOverflow(result, left, right, CMPRES1); |
| 2953 __ bltz(CMPRES1, slow_path->entry_label()); | 2953 __ bltz(CMPRES1, slow_path->entry_label()); |
| 2954 break; | 2954 break; |
| 2955 case Token::kMUL: |
| 2956 __ sra(TMP, left, kSmiTagSize); |
| 2957 __ mult(TMP, right); |
| 2958 __ mflo(result); |
| 2959 __ mfhi(CMPRES2); |
| 2960 __ sra(CMPRES1, result, 31); |
| 2961 __ bne(CMPRES1, CMPRES2, slow_path->entry_label()); |
| 2962 break; |
| 2955 case Token::kBIT_OR: | 2963 case Token::kBIT_OR: |
| 2956 // Operation part of combined smi check. | 2964 // Operation part of combined smi check. |
| 2957 if (!combined_smi_check) { | 2965 if (!combined_smi_check) { |
| 2958 __ or_(result, left, right); | 2966 __ or_(result, left, right); |
| 2959 } | 2967 } |
| 2960 break; | 2968 break; |
| 2961 case Token::kBIT_AND: | 2969 case Token::kBIT_AND: |
| 2962 __ and_(result, left, right); | 2970 __ and_(result, left, right); |
| 2963 break; | 2971 break; |
| 2964 case Token::kBIT_XOR: | 2972 case Token::kBIT_XOR: |
| (...skipping 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5702 1, | 5710 1, |
| 5703 locs()); | 5711 locs()); |
| 5704 __ lw(result, Address(SP, 1 * kWordSize)); | 5712 __ lw(result, Address(SP, 1 * kWordSize)); |
| 5705 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5713 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 5706 } | 5714 } |
| 5707 | 5715 |
| 5708 | 5716 |
| 5709 } // namespace dart | 5717 } // namespace dart |
| 5710 | 5718 |
| 5711 #endif // defined TARGET_ARCH_MIPS | 5719 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |