| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2995 // Non-instance prototype: Fetch prototype from constructor field | 2995 // Non-instance prototype: Fetch prototype from constructor field |
| 2996 // in initial map. | 2996 // in initial map. |
| 2997 __ bind(&non_instance); | 2997 __ bind(&non_instance); |
| 2998 __ lw(result, FieldMemOperand(result, Map::kConstructorOffset)); | 2998 __ lw(result, FieldMemOperand(result, Map::kConstructorOffset)); |
| 2999 | 2999 |
| 3000 // All done. | 3000 // All done. |
| 3001 __ bind(&done); | 3001 __ bind(&done); |
| 3002 } | 3002 } |
| 3003 | 3003 |
| 3004 | 3004 |
| 3005 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { |
| 3006 Register result = ToRegister(instr->result()); |
| 3007 __ LoadRoot(result, instr->index()); |
| 3008 } |
| 3009 |
| 3010 |
| 3005 void LCodeGen::DoLoadExternalArrayPointer( | 3011 void LCodeGen::DoLoadExternalArrayPointer( |
| 3006 LLoadExternalArrayPointer* instr) { | 3012 LLoadExternalArrayPointer* instr) { |
| 3007 Register to_reg = ToRegister(instr->result()); | 3013 Register to_reg = ToRegister(instr->result()); |
| 3008 Register from_reg = ToRegister(instr->object()); | 3014 Register from_reg = ToRegister(instr->object()); |
| 3009 __ lw(to_reg, FieldMemOperand(from_reg, | 3015 __ lw(to_reg, FieldMemOperand(from_reg, |
| 3010 ExternalArray::kExternalPointerOffset)); | 3016 ExternalArray::kExternalPointerOffset)); |
| 3011 } | 3017 } |
| 3012 | 3018 |
| 3013 | 3019 |
| 3014 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { | 3020 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { |
| (...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5774 __ Subu(scratch, result, scratch); | 5780 __ Subu(scratch, result, scratch); |
| 5775 __ lw(result, FieldMemOperand(scratch, | 5781 __ lw(result, FieldMemOperand(scratch, |
| 5776 FixedArray::kHeaderSize - kPointerSize)); | 5782 FixedArray::kHeaderSize - kPointerSize)); |
| 5777 __ bind(&done); | 5783 __ bind(&done); |
| 5778 } | 5784 } |
| 5779 | 5785 |
| 5780 | 5786 |
| 5781 #undef __ | 5787 #undef __ |
| 5782 | 5788 |
| 5783 } } // namespace v8::internal | 5789 } } // namespace v8::internal |
| OLD | NEW |