Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/x64/builtins-x64.cc

Issue 1539033: Fix build problems on Windows 64-bit by casting. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« src/runtime.cc ('K') | « src/runtime.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698