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

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

Issue 652118: Refactored TailCallRuntime (splitted to TailCallRuntime and TailCallExternalReference) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int num_extra_args = 0; 54 int num_extra_args = 0;
55 if (extra_args == NEEDS_CALLED_FUNCTION) { 55 if (extra_args == NEEDS_CALLED_FUNCTION) {
56 num_extra_args = 1; 56 num_extra_args = 1;
57 __ pop(kScratchRegister); // Save return address. 57 __ pop(kScratchRegister); // Save return address.
58 __ push(rdi); 58 __ push(rdi);
59 __ push(kScratchRegister); // Restore return address. 59 __ push(kScratchRegister); // Restore return address.
60 } else { 60 } else {
61 ASSERT(extra_args == NO_EXTRA_ARGUMENTS); 61 ASSERT(extra_args == NO_EXTRA_ARGUMENTS);
62 } 62 }
63 63
64 // JumpToRuntime expects rax to contain the number of arguments 64 // JumpToExternalReference expects rax to contain the number of arguments
65 // including the receiver and the extra arguments. 65 // including the receiver and the extra arguments.
66 __ addq(rax, Immediate(num_extra_args + 1)); 66 __ addq(rax, Immediate(num_extra_args + 1));
67 __ JumpToRuntime(ExternalReference(id), 1); 67 __ JumpToExternalReference(ExternalReference(id), 1);
68 } 68 }
69 69
70 70
71 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { 71 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
72 __ push(rbp); 72 __ push(rbp);
73 __ movq(rbp, rsp); 73 __ movq(rbp, rsp);
74 74
75 // Store the arguments adaptor context sentinel. 75 // Store the arguments adaptor context sentinel.
76 __ Push(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); 76 __ Push(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR));
77 77
(...skipping 1211 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
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698