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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 1611613002: [assembler] Remove obsolete InvokeBuiltin macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x87/macro-assembler-x87.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 683
684 684
685 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext) { 685 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext) {
686 // Set the entry point and jump to the C entry runtime stub. 686 // Set the entry point and jump to the C entry runtime stub.
687 LoadAddress(rbx, ext); 687 LoadAddress(rbx, ext);
688 CEntryStub ces(isolate(), 1); 688 CEntryStub ces(isolate(), 1);
689 jmp(ces.GetCode(), RelocInfo::CODE_TARGET); 689 jmp(ces.GetCode(), RelocInfo::CODE_TARGET);
690 } 690 }
691 691
692 692
693 void MacroAssembler::InvokeBuiltin(int native_context_index, InvokeFlag flag,
694 const CallWrapper& call_wrapper) {
695 // You can't call a builtin without a valid frame.
696 DCHECK(flag == JUMP_FUNCTION || has_frame());
697
698 // Fake a parameter count to avoid emitting code to do the check.
699 ParameterCount expected(0);
700 LoadNativeContextSlot(native_context_index, rdi);
701 InvokeFunctionCode(rdi, no_reg, expected, expected, flag, call_wrapper);
702 }
703
704
705 #define REG(Name) \ 693 #define REG(Name) \
706 { Register::kCode_##Name } 694 { Register::kCode_##Name }
707 695
708 static const Register saved_regs[] = { 696 static const Register saved_regs[] = {
709 REG(rax), REG(rcx), REG(rdx), REG(rbx), REG(rbp), REG(rsi), REG(rdi), REG(r8), 697 REG(rax), REG(rcx), REG(rdx), REG(rbx), REG(rbp), REG(rsi), REG(rdi), REG(r8),
710 REG(r9), REG(r10), REG(r11) 698 REG(r9), REG(r10), REG(r11)
711 }; 699 };
712 700
713 #undef REG 701 #undef REG
714 702
(...skipping 4807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5522 movl(rax, dividend); 5510 movl(rax, dividend);
5523 shrl(rax, Immediate(31)); 5511 shrl(rax, Immediate(31));
5524 addl(rdx, rax); 5512 addl(rdx, rax);
5525 } 5513 }
5526 5514
5527 5515
5528 } // namespace internal 5516 } // namespace internal
5529 } // namespace v8 5517 } // namespace v8
5530 5518
5531 #endif // V8_TARGET_ARCH_X64 5519 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698