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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 1241 // Set up the roots register. |
1242 ExternalReference roots_address = ExternalReference::roots_address(); | 1242 ExternalReference roots_address = ExternalReference::roots_address(); |
1243 __ movq(r13, roots_address); | 1243 __ movq(kRootRegister, roots_address); |
1244 | 1244 |
1245 // Current stack contents: | 1245 // Current stack contents: |
1246 // [rsp + 2 * kPointerSize ... ]: Internal frame | 1246 // [rsp + 2 * kPointerSize ... ]: Internal frame |
1247 // [rsp + kPointerSize] : function | 1247 // [rsp + kPointerSize] : function |
1248 // [rsp] : receiver | 1248 // [rsp] : receiver |
1249 // Current register contents: | 1249 // Current register contents: |
1250 // rax : argc | 1250 // rax : argc |
1251 // rbx : argv | 1251 // rbx : argv |
1252 // rsi : context | 1252 // rsi : context |
1253 // rdi : function | 1253 // rdi : function |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { | 1289 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { |
1290 Generate_JSEntryTrampolineHelper(masm, false); | 1290 Generate_JSEntryTrampolineHelper(masm, false); |
1291 } | 1291 } |
1292 | 1292 |
1293 | 1293 |
1294 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { | 1294 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { |
1295 Generate_JSEntryTrampolineHelper(masm, true); | 1295 Generate_JSEntryTrampolineHelper(masm, true); |
1296 } | 1296 } |
1297 | 1297 |
1298 } } // namespace v8::internal | 1298 } } // namespace v8::internal |
OLD | NEW |