| 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 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5172 } | 5172 } |
| 5173 } | 5173 } |
| 5174 | 5174 |
| 5175 | 5175 |
| 5176 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { | 5176 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { |
| 5177 Register reg = ToRegister(instr->value()); | 5177 Register reg = ToRegister(instr->value()); |
| 5178 Handle<JSFunction> target = instr->hydrogen()->target(); | 5178 Handle<JSFunction> target = instr->hydrogen()->target(); |
| 5179 AllowDeferredHandleDereference smi_check; | 5179 AllowDeferredHandleDereference smi_check; |
| 5180 if (isolate()->heap()->InNewSpace(*target)) { | 5180 if (isolate()->heap()->InNewSpace(*target)) { |
| 5181 Register reg = ToRegister(instr->value()); | 5181 Register reg = ToRegister(instr->value()); |
| 5182 Handle<Cell> cell = isolate()->factory()->NewPropertyCell(target); | 5182 Handle<Cell> cell = isolate()->factory()->NewCell(target); |
| 5183 __ li(at, Operand(Handle<Object>(cell))); | 5183 __ li(at, Operand(Handle<Object>(cell))); |
| 5184 __ lw(at, FieldMemOperand(at, Cell::kValueOffset)); | 5184 __ lw(at, FieldMemOperand(at, Cell::kValueOffset)); |
| 5185 DeoptimizeIf(ne, instr->environment(), reg, | 5185 DeoptimizeIf(ne, instr->environment(), reg, |
| 5186 Operand(at)); | 5186 Operand(at)); |
| 5187 } else { | 5187 } else { |
| 5188 DeoptimizeIf(ne, instr->environment(), reg, | 5188 DeoptimizeIf(ne, instr->environment(), reg, |
| 5189 Operand(target)); | 5189 Operand(target)); |
| 5190 } | 5190 } |
| 5191 } | 5191 } |
| 5192 | 5192 |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5849 __ Subu(scratch, result, scratch); | 5849 __ Subu(scratch, result, scratch); |
| 5850 __ lw(result, FieldMemOperand(scratch, | 5850 __ lw(result, FieldMemOperand(scratch, |
| 5851 FixedArray::kHeaderSize - kPointerSize)); | 5851 FixedArray::kHeaderSize - kPointerSize)); |
| 5852 __ bind(&done); | 5852 __ bind(&done); |
| 5853 } | 5853 } |
| 5854 | 5854 |
| 5855 | 5855 |
| 5856 #undef __ | 5856 #undef __ |
| 5857 | 5857 |
| 5858 } } // namespace v8::internal | 5858 } } // namespace v8::internal |
| OLD | NEW |