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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 134333007: Remove HCallGlobal and merge uses with HCallNamed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 3805 matching lines...) Expand 10 before | Expand all | Expand 10 after
3816 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); 3816 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS);
3817 if (instr->hydrogen()->IsTailCall()) { 3817 if (instr->hydrogen()->IsTailCall()) {
3818 if (NeedsEagerFrame()) __ leave(); 3818 if (NeedsEagerFrame()) __ leave();
3819 __ jmp(stub.GetCode(isolate()), RelocInfo::CODE_TARGET); 3819 __ jmp(stub.GetCode(isolate()), RelocInfo::CODE_TARGET);
3820 } else { 3820 } else {
3821 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 3821 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
3822 } 3822 }
3823 } 3823 }
3824 3824
3825 3825
3826 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
3827 ASSERT(ToRegister(instr->context()).is(rsi));
3828 ASSERT(ToRegister(instr->result()).is(rax));
3829 int arity = instr->arity();
3830 Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arity);
3831 __ Move(rcx, instr->name());
3832 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3833 }
3834
3835
3836 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { 3826 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) {
3837 ASSERT(ToRegister(instr->result()).is(rax)); 3827 ASSERT(ToRegister(instr->result()).is(rax));
3838 CallKnownFunction(instr->hydrogen()->target(), 3828 CallKnownFunction(instr->hydrogen()->target(),
3839 instr->hydrogen()->formal_parameter_count(), 3829 instr->hydrogen()->formal_parameter_count(),
3840 instr->arity(), 3830 instr->arity(),
3841 instr, 3831 instr,
3842 RDI_UNINITIALIZED); 3832 RDI_UNINITIALIZED);
3843 } 3833 }
3844 3834
3845 3835
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after
5624 FixedArray::kHeaderSize - kPointerSize)); 5614 FixedArray::kHeaderSize - kPointerSize));
5625 __ bind(&done); 5615 __ bind(&done);
5626 } 5616 }
5627 5617
5628 5618
5629 #undef __ 5619 #undef __
5630 5620
5631 } } // namespace v8::internal 5621 } } // namespace v8::internal
5632 5622
5633 #endif // V8_TARGET_ARCH_X64 5623 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698