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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2393 case EXTERNAL_UNSIGNED_INT_ELEMENTS: | 2393 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
2394 __ mov(result, operand); | 2394 __ mov(result, operand); |
2395 __ test(result, Operand(result)); | 2395 __ test(result, Operand(result)); |
2396 // TODO(danno): we could be more clever here, perhaps having a special | 2396 // TODO(danno): we could be more clever here, perhaps having a special |
2397 // version of the stub that detects if the overflow case actually | 2397 // version of the stub that detects if the overflow case actually |
2398 // happens, and generate code that returns a double rather than int. | 2398 // happens, and generate code that returns a double rather than int. |
2399 DeoptimizeIf(negative, instr->environment()); | 2399 DeoptimizeIf(negative, instr->environment()); |
2400 break; | 2400 break; |
2401 case EXTERNAL_FLOAT_ELEMENTS: | 2401 case EXTERNAL_FLOAT_ELEMENTS: |
2402 case EXTERNAL_DOUBLE_ELEMENTS: | 2402 case EXTERNAL_DOUBLE_ELEMENTS: |
| 2403 case FAST_SMI_ONLY_ELEMENTS: |
2403 case FAST_ELEMENTS: | 2404 case FAST_ELEMENTS: |
2404 case FAST_DOUBLE_ELEMENTS: | 2405 case FAST_DOUBLE_ELEMENTS: |
2405 case DICTIONARY_ELEMENTS: | 2406 case DICTIONARY_ELEMENTS: |
2406 case NON_STRICT_ARGUMENTS_ELEMENTS: | 2407 case NON_STRICT_ARGUMENTS_ELEMENTS: |
2407 UNREACHABLE(); | 2408 UNREACHABLE(); |
2408 break; | 2409 break; |
2409 } | 2410 } |
2410 } | 2411 } |
2411 } | 2412 } |
2412 | 2413 |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3164 case EXTERNAL_SHORT_ELEMENTS: | 3165 case EXTERNAL_SHORT_ELEMENTS: |
3165 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 3166 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
3166 __ mov_w(operand, value); | 3167 __ mov_w(operand, value); |
3167 break; | 3168 break; |
3168 case EXTERNAL_INT_ELEMENTS: | 3169 case EXTERNAL_INT_ELEMENTS: |
3169 case EXTERNAL_UNSIGNED_INT_ELEMENTS: | 3170 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
3170 __ mov(operand, value); | 3171 __ mov(operand, value); |
3171 break; | 3172 break; |
3172 case EXTERNAL_FLOAT_ELEMENTS: | 3173 case EXTERNAL_FLOAT_ELEMENTS: |
3173 case EXTERNAL_DOUBLE_ELEMENTS: | 3174 case EXTERNAL_DOUBLE_ELEMENTS: |
| 3175 case FAST_SMI_ONLY_ELEMENTS: |
3174 case FAST_ELEMENTS: | 3176 case FAST_ELEMENTS: |
3175 case FAST_DOUBLE_ELEMENTS: | 3177 case FAST_DOUBLE_ELEMENTS: |
3176 case DICTIONARY_ELEMENTS: | 3178 case DICTIONARY_ELEMENTS: |
3177 case NON_STRICT_ARGUMENTS_ELEMENTS: | 3179 case NON_STRICT_ARGUMENTS_ELEMENTS: |
3178 UNREACHABLE(); | 3180 UNREACHABLE(); |
3179 break; | 3181 break; |
3180 } | 3182 } |
3181 } | 3183 } |
3182 } | 3184 } |
3183 | 3185 |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4421 env->deoptimization_index()); | 4423 env->deoptimization_index()); |
4422 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4424 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
4423 } | 4425 } |
4424 | 4426 |
4425 | 4427 |
4426 #undef __ | 4428 #undef __ |
4427 | 4429 |
4428 } } // namespace v8::internal | 4430 } } // namespace v8::internal |
4429 | 4431 |
4430 #endif // V8_TARGET_ARCH_IA32 | 4432 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |