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 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 Condition is_smi = __ CheckSmi(receiver); | 2843 Condition is_smi = __ CheckSmi(receiver); |
2844 DeoptimizeIf(is_smi, instr->environment()); | 2844 DeoptimizeIf(is_smi, instr->environment()); |
2845 __ CmpObjectType(receiver, FIRST_SPEC_OBJECT_TYPE, kScratchRegister); | 2845 __ CmpObjectType(receiver, FIRST_SPEC_OBJECT_TYPE, kScratchRegister); |
2846 DeoptimizeIf(below, instr->environment()); | 2846 DeoptimizeIf(below, instr->environment()); |
2847 __ jmp(&receiver_ok, Label::kNear); | 2847 __ jmp(&receiver_ok, Label::kNear); |
2848 | 2848 |
2849 __ bind(&global_object); | 2849 __ bind(&global_object); |
2850 // TODO(kmillikin): We have a hydrogen value for the global object. See | 2850 // TODO(kmillikin): We have a hydrogen value for the global object. See |
2851 // if it's better to use it than to explicitly fetch it from the context | 2851 // if it's better to use it than to explicitly fetch it from the context |
2852 // here. | 2852 // here. |
2853 __ movq(receiver, ContextOperand(rsi, Context::GLOBAL_INDEX)); | 2853 __ movq(receiver, ContextOperand(rsi, Context::GLOBAL_OBJECT_INDEX)); |
2854 __ movq(receiver, | 2854 __ movq(receiver, |
2855 FieldOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); | 2855 FieldOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); |
2856 __ bind(&receiver_ok); | 2856 __ bind(&receiver_ok); |
2857 } | 2857 } |
2858 | 2858 |
2859 | 2859 |
2860 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { | 2860 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { |
2861 Register receiver = ToRegister(instr->receiver()); | 2861 Register receiver = ToRegister(instr->receiver()); |
2862 Register function = ToRegister(instr->function()); | 2862 Register function = ToRegister(instr->function()); |
2863 Register length = ToRegister(instr->length()); | 2863 Register length = ToRegister(instr->length()); |
(...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5164 FixedArray::kHeaderSize - kPointerSize)); | 5164 FixedArray::kHeaderSize - kPointerSize)); |
5165 __ bind(&done); | 5165 __ bind(&done); |
5166 } | 5166 } |
5167 | 5167 |
5168 | 5168 |
5169 #undef __ | 5169 #undef __ |
5170 | 5170 |
5171 } } // namespace v8::internal | 5171 } } // namespace v8::internal |
5172 | 5172 |
5173 #endif // V8_TARGET_ARCH_X64 | 5173 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |