| 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 3438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3449 __ b(eq, &global_object); | 3449 __ b(eq, &global_object); |
| 3450 | 3450 |
| 3451 // Deoptimize if the receiver is not a JS object. | 3451 // Deoptimize if the receiver is not a JS object. |
| 3452 __ SmiTst(receiver); | 3452 __ SmiTst(receiver); |
| 3453 DeoptimizeIf(eq, instr->environment()); | 3453 DeoptimizeIf(eq, instr->environment()); |
| 3454 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE); | 3454 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE); |
| 3455 DeoptimizeIf(lt, instr->environment()); | 3455 DeoptimizeIf(lt, instr->environment()); |
| 3456 __ jmp(&receiver_ok); | 3456 __ jmp(&receiver_ok); |
| 3457 | 3457 |
| 3458 __ bind(&global_object); | 3458 __ bind(&global_object); |
| 3459 __ ldr(receiver, GlobalObjectOperand()); | 3459 __ ldr(receiver, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 3460 __ ldr(receiver, ContextOperand(receiver, Context::GLOBAL_OBJECT_INDEX)); |
| 3460 __ ldr(receiver, | 3461 __ ldr(receiver, |
| 3461 FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); | 3462 FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); |
| 3462 __ bind(&receiver_ok); | 3463 __ bind(&receiver_ok); |
| 3463 } | 3464 } |
| 3464 | 3465 |
| 3465 | 3466 |
| 3466 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { | 3467 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { |
| 3467 Register receiver = ToRegister(instr->receiver()); | 3468 Register receiver = ToRegister(instr->receiver()); |
| 3468 Register function = ToRegister(instr->function()); | 3469 Register function = ToRegister(instr->function()); |
| 3469 Register length = ToRegister(instr->length()); | 3470 Register length = ToRegister(instr->length()); |
| (...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5853 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5854 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5854 __ ldr(result, FieldMemOperand(scratch, | 5855 __ ldr(result, FieldMemOperand(scratch, |
| 5855 FixedArray::kHeaderSize - kPointerSize)); | 5856 FixedArray::kHeaderSize - kPointerSize)); |
| 5856 __ bind(&done); | 5857 __ bind(&done); |
| 5857 } | 5858 } |
| 5858 | 5859 |
| 5859 | 5860 |
| 5860 #undef __ | 5861 #undef __ |
| 5861 | 5862 |
| 5862 } } // namespace v8::internal | 5863 } } // namespace v8::internal |
| OLD | NEW |