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 2589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 __ cmp(result, Operand(0x80000000)); | 2600 __ cmp(result, Operand(0x80000000)); |
2601 // TODO(danno): we could be more clever here, perhaps having a special | 2601 // TODO(danno): we could be more clever here, perhaps having a special |
2602 // version of the stub that detects if the overflow case actually | 2602 // version of the stub that detects if the overflow case actually |
2603 // happens, and generate code that returns a double rather than int. | 2603 // happens, and generate code that returns a double rather than int. |
2604 DeoptimizeIf(cs, instr->environment()); | 2604 DeoptimizeIf(cs, instr->environment()); |
2605 break; | 2605 break; |
2606 case EXTERNAL_FLOAT_ELEMENTS: | 2606 case EXTERNAL_FLOAT_ELEMENTS: |
2607 case EXTERNAL_DOUBLE_ELEMENTS: | 2607 case EXTERNAL_DOUBLE_ELEMENTS: |
2608 case FAST_DOUBLE_ELEMENTS: | 2608 case FAST_DOUBLE_ELEMENTS: |
2609 case FAST_ELEMENTS: | 2609 case FAST_ELEMENTS: |
| 2610 case FAST_SMI_ONLY_ELEMENTS: |
2610 case DICTIONARY_ELEMENTS: | 2611 case DICTIONARY_ELEMENTS: |
2611 case NON_STRICT_ARGUMENTS_ELEMENTS: | 2612 case NON_STRICT_ARGUMENTS_ELEMENTS: |
2612 UNREACHABLE(); | 2613 UNREACHABLE(); |
2613 break; | 2614 break; |
2614 } | 2615 } |
2615 } | 2616 } |
2616 } | 2617 } |
2617 | 2618 |
2618 | 2619 |
2619 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 2620 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3442 __ strh(value, mem_operand); | 3443 __ strh(value, mem_operand); |
3443 break; | 3444 break; |
3444 case EXTERNAL_INT_ELEMENTS: | 3445 case EXTERNAL_INT_ELEMENTS: |
3445 case EXTERNAL_UNSIGNED_INT_ELEMENTS: | 3446 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
3446 __ str(value, mem_operand); | 3447 __ str(value, mem_operand); |
3447 break; | 3448 break; |
3448 case EXTERNAL_FLOAT_ELEMENTS: | 3449 case EXTERNAL_FLOAT_ELEMENTS: |
3449 case EXTERNAL_DOUBLE_ELEMENTS: | 3450 case EXTERNAL_DOUBLE_ELEMENTS: |
3450 case FAST_DOUBLE_ELEMENTS: | 3451 case FAST_DOUBLE_ELEMENTS: |
3451 case FAST_ELEMENTS: | 3452 case FAST_ELEMENTS: |
| 3453 case FAST_SMI_ONLY_ELEMENTS: |
3452 case DICTIONARY_ELEMENTS: | 3454 case DICTIONARY_ELEMENTS: |
3453 case NON_STRICT_ARGUMENTS_ELEMENTS: | 3455 case NON_STRICT_ARGUMENTS_ELEMENTS: |
3454 UNREACHABLE(); | 3456 UNREACHABLE(); |
3455 break; | 3457 break; |
3456 } | 3458 } |
3457 } | 3459 } |
3458 } | 3460 } |
3459 | 3461 |
3460 | 3462 |
3461 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 3463 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4542 ASSERT(osr_pc_offset_ == -1); | 4544 ASSERT(osr_pc_offset_ == -1); |
4543 osr_pc_offset_ = masm()->pc_offset(); | 4545 osr_pc_offset_ = masm()->pc_offset(); |
4544 } | 4546 } |
4545 | 4547 |
4546 | 4548 |
4547 | 4549 |
4548 | 4550 |
4549 #undef __ | 4551 #undef __ |
4550 | 4552 |
4551 } } // namespace v8::internal | 4553 } } // namespace v8::internal |
OLD | NEW |