OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3212 key = ToRegister(instr->key()); | 3212 key = ToRegister(instr->key()); |
3213 int shift_size = (instr->hydrogen()->key()->representation().IsSmi()) | 3213 int shift_size = (instr->hydrogen()->key()->representation().IsSmi()) |
3214 ? (element_size_shift - kSmiTagSize) : element_size_shift; | 3214 ? (element_size_shift - kSmiTagSize) : element_size_shift; |
3215 __ sll(at, key, shift_size); | 3215 __ sll(at, key, shift_size); |
3216 __ Addu(scratch, scratch, at); | 3216 __ Addu(scratch, scratch, at); |
3217 } | 3217 } |
3218 | 3218 |
3219 __ ldc1(result, MemOperand(scratch)); | 3219 __ ldc1(result, MemOperand(scratch)); |
3220 | 3220 |
3221 if (instr->hydrogen()->RequiresHoleCheck()) { | 3221 if (instr->hydrogen()->RequiresHoleCheck()) { |
3222 __ lw(scratch, MemOperand(scratch, sizeof(kHoleNanLower32))); | 3222 __ lw(scratch, MemOperand(scratch, kHoleNanUpper32Offset)); |
3223 DeoptimizeIf(eq, instr->environment(), scratch, Operand(kHoleNanUpper32)); | 3223 DeoptimizeIf(eq, instr->environment(), scratch, Operand(kHoleNanUpper32)); |
3224 } | 3224 } |
3225 } | 3225 } |
3226 | 3226 |
3227 | 3227 |
3228 void LCodeGen::DoLoadKeyedFixedArray(LLoadKeyed* instr) { | 3228 void LCodeGen::DoLoadKeyedFixedArray(LLoadKeyed* instr) { |
3229 Register elements = ToRegister(instr->elements()); | 3229 Register elements = ToRegister(instr->elements()); |
3230 Register result = ToRegister(instr->result()); | 3230 Register result = ToRegister(instr->result()); |
3231 Register scratch = scratch0(); | 3231 Register scratch = scratch0(); |
3232 Register store_base = scratch; | 3232 Register store_base = scratch; |
(...skipping 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5910 __ lw(result, FieldMemOperand(scratch, | 5910 __ lw(result, FieldMemOperand(scratch, |
5911 FixedArray::kHeaderSize - kPointerSize)); | 5911 FixedArray::kHeaderSize - kPointerSize)); |
5912 __ bind(deferred->exit()); | 5912 __ bind(deferred->exit()); |
5913 __ bind(&done); | 5913 __ bind(&done); |
5914 } | 5914 } |
5915 | 5915 |
5916 | 5916 |
5917 #undef __ | 5917 #undef __ |
5918 | 5918 |
5919 } } // namespace v8::internal | 5919 } } // namespace v8::internal |
OLD | NEW |