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 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2881 // Non-instance prototype: Fetch prototype from constructor field | 2881 // Non-instance prototype: Fetch prototype from constructor field |
2882 // in the function's map. | 2882 // in the function's map. |
2883 __ bind(&non_instance); | 2883 __ bind(&non_instance); |
2884 __ movq(result, FieldOperand(result, Map::kConstructorOffset)); | 2884 __ movq(result, FieldOperand(result, Map::kConstructorOffset)); |
2885 | 2885 |
2886 // All done. | 2886 // All done. |
2887 __ bind(&done); | 2887 __ bind(&done); |
2888 } | 2888 } |
2889 | 2889 |
2890 | 2890 |
| 2891 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { |
| 2892 Register result = ToRegister(instr->result()); |
| 2893 __ LoadRoot(result, instr->index()); |
| 2894 } |
| 2895 |
| 2896 |
2891 void LCodeGen::DoLoadExternalArrayPointer( | 2897 void LCodeGen::DoLoadExternalArrayPointer( |
2892 LLoadExternalArrayPointer* instr) { | 2898 LLoadExternalArrayPointer* instr) { |
2893 Register result = ToRegister(instr->result()); | 2899 Register result = ToRegister(instr->result()); |
2894 Register input = ToRegister(instr->object()); | 2900 Register input = ToRegister(instr->object()); |
2895 __ movq(result, FieldOperand(input, | 2901 __ movq(result, FieldOperand(input, |
2896 ExternalPixelArray::kExternalPointerOffset)); | 2902 ExternalPixelArray::kExternalPointerOffset)); |
2897 } | 2903 } |
2898 | 2904 |
2899 | 2905 |
2900 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { | 2906 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { |
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5520 FixedArray::kHeaderSize - kPointerSize)); | 5526 FixedArray::kHeaderSize - kPointerSize)); |
5521 __ bind(&done); | 5527 __ bind(&done); |
5522 } | 5528 } |
5523 | 5529 |
5524 | 5530 |
5525 #undef __ | 5531 #undef __ |
5526 | 5532 |
5527 } } // namespace v8::internal | 5533 } } // namespace v8::internal |
5528 | 5534 |
5529 #endif // V8_TARGET_ARCH_X64 | 5535 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |