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 2881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2892 __ bind(&done); | 2892 __ bind(&done); |
2893 } | 2893 } |
2894 | 2894 |
2895 | 2895 |
2896 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { | 2896 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { |
2897 Register result = ToRegister(instr->result()); | 2897 Register result = ToRegister(instr->result()); |
2898 __ LoadRoot(result, instr->index()); | 2898 __ LoadRoot(result, instr->index()); |
2899 } | 2899 } |
2900 | 2900 |
2901 | 2901 |
2902 void LCodeGen::DoLoadExternalArrayPointer( | |
2903 LLoadExternalArrayPointer* instr) { | |
2904 Register result = ToRegister(instr->result()); | |
2905 Register input = ToRegister(instr->object()); | |
2906 __ movp(result, | |
2907 FieldOperand(input, | |
2908 ExternalUint8ClampedArray::kExternalPointerOffset)); | |
2909 } | |
2910 | |
2911 | |
2912 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { | 2902 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { |
2913 Register arguments = ToRegister(instr->arguments()); | 2903 Register arguments = ToRegister(instr->arguments()); |
2914 Register result = ToRegister(instr->result()); | 2904 Register result = ToRegister(instr->result()); |
2915 | 2905 |
2916 if (instr->length()->IsConstantOperand() && | 2906 if (instr->length()->IsConstantOperand() && |
2917 instr->index()->IsConstantOperand()) { | 2907 instr->index()->IsConstantOperand()) { |
2918 int32_t const_index = ToInteger32(LConstantOperand::cast(instr->index())); | 2908 int32_t const_index = ToInteger32(LConstantOperand::cast(instr->index())); |
2919 int32_t const_length = ToInteger32(LConstantOperand::cast(instr->length())); | 2909 int32_t const_length = ToInteger32(LConstantOperand::cast(instr->length())); |
2920 StackArgumentsAccessor args(arguments, const_length, | 2910 StackArgumentsAccessor args(arguments, const_length, |
2921 ARGUMENTS_DONT_CONTAIN_RECEIVER); | 2911 ARGUMENTS_DONT_CONTAIN_RECEIVER); |
(...skipping 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5623 FixedArray::kHeaderSize - kPointerSize)); | 5613 FixedArray::kHeaderSize - kPointerSize)); |
5624 __ bind(&done); | 5614 __ bind(&done); |
5625 } | 5615 } |
5626 | 5616 |
5627 | 5617 |
5628 #undef __ | 5618 #undef __ |
5629 | 5619 |
5630 } } // namespace v8::internal | 5620 } } // namespace v8::internal |
5631 | 5621 |
5632 #endif // V8_TARGET_ARCH_X64 | 5622 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |