| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // write barrier because the allocated object is in new space. | 83 // write barrier because the allocated object is in new space. |
| 84 __ LoadRoot(rbx, Heap::kEmptyFixedArrayRootIndex); | 84 __ LoadRoot(rbx, Heap::kEmptyFixedArrayRootIndex); |
| 85 __ LoadRoot(rcx, Heap::kTheHoleValueRootIndex); | 85 __ LoadRoot(rcx, Heap::kTheHoleValueRootIndex); |
| 86 __ LoadRoot(rdi, Heap::kUndefinedValueRootIndex); | 86 __ LoadRoot(rdi, Heap::kUndefinedValueRootIndex); |
| 87 __ movq(FieldOperand(rax, JSObject::kPropertiesOffset), rbx); | 87 __ movq(FieldOperand(rax, JSObject::kPropertiesOffset), rbx); |
| 88 __ movq(FieldOperand(rax, JSObject::kElementsOffset), rbx); | 88 __ movq(FieldOperand(rax, JSObject::kElementsOffset), rbx); |
| 89 __ movq(FieldOperand(rax, JSFunction::kPrototypeOrInitialMapOffset), rcx); | 89 __ movq(FieldOperand(rax, JSFunction::kPrototypeOrInitialMapOffset), rcx); |
| 90 __ movq(FieldOperand(rax, JSFunction::kSharedFunctionInfoOffset), rdx); | 90 __ movq(FieldOperand(rax, JSFunction::kSharedFunctionInfoOffset), rdx); |
| 91 __ movq(FieldOperand(rax, JSFunction::kContextOffset), rsi); | 91 __ movq(FieldOperand(rax, JSFunction::kContextOffset), rsi); |
| 92 __ movq(FieldOperand(rax, JSFunction::kLiteralsOffset), rbx); | 92 __ movq(FieldOperand(rax, JSFunction::kLiteralsOffset), rbx); |
| 93 __ movq(FieldOperand(rax, JSFunction::kProfilerTicksOffset), Immediate(0)); |
| 93 __ movq(FieldOperand(rax, JSFunction::kNextFunctionLinkOffset), rdi); | 94 __ movq(FieldOperand(rax, JSFunction::kNextFunctionLinkOffset), rdi); |
| 94 | 95 |
| 95 // Initialize the code pointer in the function to be the one | 96 // Initialize the code pointer in the function to be the one |
| 96 // found in the shared function info object. | 97 // found in the shared function info object. |
| 97 __ movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset)); | 98 __ movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset)); |
| 98 __ lea(rdx, FieldOperand(rdx, Code::kHeaderSize)); | 99 __ lea(rdx, FieldOperand(rdx, Code::kHeaderSize)); |
| 99 __ movq(FieldOperand(rax, JSFunction::kCodeEntryOffset), rdx); | 100 __ movq(FieldOperand(rax, JSFunction::kCodeEntryOffset), rdx); |
| 100 | 101 |
| 101 | 102 |
| 102 // Return and remove the on-stack parameter. | 103 // Return and remove the on-stack parameter. |
| (...skipping 5990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6093 xmm0, | 6094 xmm0, |
| 6094 &slow_elements); | 6095 &slow_elements); |
| 6095 __ ret(0); | 6096 __ ret(0); |
| 6096 } | 6097 } |
| 6097 | 6098 |
| 6098 #undef __ | 6099 #undef __ |
| 6099 | 6100 |
| 6100 } } // namespace v8::internal | 6101 } } // namespace v8::internal |
| 6101 | 6102 |
| 6102 #endif // V8_TARGET_ARCH_X64 | 6103 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |