| 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 5231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5242 } | 5242 } |
| 5243 } | 5243 } |
| 5244 | 5244 |
| 5245 | 5245 |
| 5246 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { | 5246 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { |
| 5247 Register reg = ToRegister(instr->value()); | 5247 Register reg = ToRegister(instr->value()); |
| 5248 Handle<JSFunction> target = instr->hydrogen()->target(); | 5248 Handle<JSFunction> target = instr->hydrogen()->target(); |
| 5249 AllowDeferredHandleDereference smi_check; | 5249 AllowDeferredHandleDereference smi_check; |
| 5250 if (isolate()->heap()->InNewSpace(*target)) { | 5250 if (isolate()->heap()->InNewSpace(*target)) { |
| 5251 Register reg = ToRegister(instr->value()); | 5251 Register reg = ToRegister(instr->value()); |
| 5252 Handle<Cell> cell = isolate()->factory()->NewPropertyCell(target); | 5252 Handle<Cell> cell = isolate()->factory()->NewCell(target); |
| 5253 __ mov(ip, Operand(Handle<Object>(cell))); | 5253 __ mov(ip, Operand(Handle<Object>(cell))); |
| 5254 __ ldr(ip, FieldMemOperand(ip, Cell::kValueOffset)); | 5254 __ ldr(ip, FieldMemOperand(ip, Cell::kValueOffset)); |
| 5255 __ cmp(reg, ip); | 5255 __ cmp(reg, ip); |
| 5256 } else { | 5256 } else { |
| 5257 __ cmp(reg, Operand(target)); | 5257 __ cmp(reg, Operand(target)); |
| 5258 } | 5258 } |
| 5259 DeoptimizeIf(ne, instr->environment()); | 5259 DeoptimizeIf(ne, instr->environment()); |
| 5260 } | 5260 } |
| 5261 | 5261 |
| 5262 | 5262 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5882 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5882 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5883 __ ldr(result, FieldMemOperand(scratch, | 5883 __ ldr(result, FieldMemOperand(scratch, |
| 5884 FixedArray::kHeaderSize - kPointerSize)); | 5884 FixedArray::kHeaderSize - kPointerSize)); |
| 5885 __ bind(&done); | 5885 __ bind(&done); |
| 5886 } | 5886 } |
| 5887 | 5887 |
| 5888 | 5888 |
| 5889 #undef __ | 5889 #undef __ |
| 5890 | 5890 |
| 5891 } } // namespace v8::internal | 5891 } } // namespace v8::internal |
| OLD | NEW |