| 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 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2608 __ cmp(result, Operand(0x80000000)); | 2608 __ cmp(result, Operand(0x80000000)); |
| 2609 // TODO(danno): we could be more clever here, perhaps having a special | 2609 // TODO(danno): we could be more clever here, perhaps having a special |
| 2610 // version of the stub that detects if the overflow case actually | 2610 // version of the stub that detects if the overflow case actually |
| 2611 // happens, and generate code that returns a double rather than int. | 2611 // happens, and generate code that returns a double rather than int. |
| 2612 DeoptimizeIf(cs, instr->environment()); | 2612 DeoptimizeIf(cs, instr->environment()); |
| 2613 break; | 2613 break; |
| 2614 case EXTERNAL_FLOAT_ELEMENTS: | 2614 case EXTERNAL_FLOAT_ELEMENTS: |
| 2615 case EXTERNAL_DOUBLE_ELEMENTS: | 2615 case EXTERNAL_DOUBLE_ELEMENTS: |
| 2616 case FAST_DOUBLE_ELEMENTS: | 2616 case FAST_DOUBLE_ELEMENTS: |
| 2617 case FAST_ELEMENTS: | 2617 case FAST_ELEMENTS: |
| 2618 case FAST_SMI_ONLY_ELEMENTS: |
| 2618 case DICTIONARY_ELEMENTS: | 2619 case DICTIONARY_ELEMENTS: |
| 2619 case NON_STRICT_ARGUMENTS_ELEMENTS: | 2620 case NON_STRICT_ARGUMENTS_ELEMENTS: |
| 2620 UNREACHABLE(); | 2621 UNREACHABLE(); |
| 2621 break; | 2622 break; |
| 2622 } | 2623 } |
| 2623 } | 2624 } |
| 2624 } | 2625 } |
| 2625 | 2626 |
| 2626 | 2627 |
| 2627 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 2628 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3450 __ strh(value, mem_operand); | 3451 __ strh(value, mem_operand); |
| 3451 break; | 3452 break; |
| 3452 case EXTERNAL_INT_ELEMENTS: | 3453 case EXTERNAL_INT_ELEMENTS: |
| 3453 case EXTERNAL_UNSIGNED_INT_ELEMENTS: | 3454 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
| 3454 __ str(value, mem_operand); | 3455 __ str(value, mem_operand); |
| 3455 break; | 3456 break; |
| 3456 case EXTERNAL_FLOAT_ELEMENTS: | 3457 case EXTERNAL_FLOAT_ELEMENTS: |
| 3457 case EXTERNAL_DOUBLE_ELEMENTS: | 3458 case EXTERNAL_DOUBLE_ELEMENTS: |
| 3458 case FAST_DOUBLE_ELEMENTS: | 3459 case FAST_DOUBLE_ELEMENTS: |
| 3459 case FAST_ELEMENTS: | 3460 case FAST_ELEMENTS: |
| 3461 case FAST_SMI_ONLY_ELEMENTS: |
| 3460 case DICTIONARY_ELEMENTS: | 3462 case DICTIONARY_ELEMENTS: |
| 3461 case NON_STRICT_ARGUMENTS_ELEMENTS: | 3463 case NON_STRICT_ARGUMENTS_ELEMENTS: |
| 3462 UNREACHABLE(); | 3464 UNREACHABLE(); |
| 3463 break; | 3465 break; |
| 3464 } | 3466 } |
| 3465 } | 3467 } |
| 3466 } | 3468 } |
| 3467 | 3469 |
| 3468 | 3470 |
| 3469 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 3471 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
| (...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4552 ASSERT(osr_pc_offset_ == -1); | 4554 ASSERT(osr_pc_offset_ == -1); |
| 4553 osr_pc_offset_ = masm()->pc_offset(); | 4555 osr_pc_offset_ = masm()->pc_offset(); |
| 4554 } | 4556 } |
| 4555 | 4557 |
| 4556 | 4558 |
| 4557 | 4559 |
| 4558 | 4560 |
| 4559 #undef __ | 4561 #undef __ |
| 4560 | 4562 |
| 4561 } } // namespace v8::internal | 4563 } } // namespace v8::internal |
| OLD | NEW |