OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 // Push the function and receiver and setup the context. | 1231 // Push the function and receiver and setup the context. |
1232 __ push(rdi); | 1232 __ push(rdi); |
1233 __ push(rdx); | 1233 __ push(rdx); |
1234 __ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); | 1234 __ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); |
1235 | 1235 |
1236 // Load the number of arguments and setup pointer to the arguments. | 1236 // Load the number of arguments and setup pointer to the arguments. |
1237 __ movq(rax, rcx); | 1237 __ movq(rax, rcx); |
1238 __ movq(rbx, r8); | 1238 __ movq(rbx, r8); |
1239 #endif // _WIN64 | 1239 #endif // _WIN64 |
1240 | 1240 |
1241 // Set up the roots register. | |
1242 ExternalReference roots_address = ExternalReference::roots_address(); | |
1243 __ movq(kRootRegister, roots_address); | |
1244 | |
1245 // Current stack contents: | 1241 // Current stack contents: |
1246 // [rsp + 2 * kPointerSize ... ]: Internal frame | 1242 // [rsp + 2 * kPointerSize ... ]: Internal frame |
1247 // [rsp + kPointerSize] : function | 1243 // [rsp + kPointerSize] : function |
1248 // [rsp] : receiver | 1244 // [rsp] : receiver |
1249 // Current register contents: | 1245 // Current register contents: |
1250 // rax : argc | 1246 // rax : argc |
1251 // rbx : argv | 1247 // rbx : argv |
1252 // rsi : context | 1248 // rsi : context |
1253 // rdi : function | 1249 // rdi : function |
1254 | 1250 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 } | 1287 } |
1292 | 1288 |
1293 | 1289 |
1294 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { | 1290 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { |
1295 Generate_JSEntryTrampolineHelper(masm, true); | 1291 Generate_JSEntryTrampolineHelper(masm, true); |
1296 } | 1292 } |
1297 | 1293 |
1298 } } // namespace v8::internal | 1294 } } // namespace v8::internal |
1299 | 1295 |
1300 #endif // V8_TARGET_ARCH_X64 | 1296 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |