| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3055 | 3055 |
| 3056 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); | 3056 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); |
| 3057 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3057 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 3058 } | 3058 } |
| 3059 | 3059 |
| 3060 | 3060 |
| 3061 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { | 3061 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { |
| 3062 Register result = ToRegister(instr->result()); | 3062 Register result = ToRegister(instr->result()); |
| 3063 | 3063 |
| 3064 if (instr->hydrogen()->from_inlined()) { | 3064 if (instr->hydrogen()->from_inlined()) { |
| 3065 __ lea(result, Operand(rsp, -2 * kPointerSize)); | 3065 __ lea(result, Operand(rsp, -1 * kPCOnStackSize + -1 * kFPOnStackSize)); |
| 3066 } else { | 3066 } else { |
| 3067 // Check for arguments adapter frame. | 3067 // Check for arguments adapter frame. |
| 3068 Label done, adapted; | 3068 Label done, adapted; |
| 3069 __ movq(result, Operand(rbp, StandardFrameConstants::kCallerFPOffset)); | 3069 __ movq(result, Operand(rbp, StandardFrameConstants::kCallerFPOffset)); |
| 3070 __ Cmp(Operand(result, StandardFrameConstants::kContextOffset), | 3070 __ Cmp(Operand(result, StandardFrameConstants::kContextOffset), |
| 3071 Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); | 3071 Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); |
| 3072 __ j(equal, &adapted, Label::kNear); | 3072 __ j(equal, &adapted, Label::kNear); |
| 3073 | 3073 |
| 3074 // No arguments adaptor frame. | 3074 // No arguments adaptor frame. |
| 3075 __ movq(result, rbp); | 3075 __ movq(result, rbp); |
| (...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5528 FixedArray::kHeaderSize - kPointerSize)); | 5528 FixedArray::kHeaderSize - kPointerSize)); |
| 5529 __ bind(&done); | 5529 __ bind(&done); |
| 5530 } | 5530 } |
| 5531 | 5531 |
| 5532 | 5532 |
| 5533 #undef __ | 5533 #undef __ |
| 5534 | 5534 |
| 5535 } } // namespace v8::internal | 5535 } } // namespace v8::internal |
| 5536 | 5536 |
| 5537 #endif // V8_TARGET_ARCH_X64 | 5537 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |