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

Side by Side Diff: src/ic/x64/handler-compiler-x64.cc

Issue 551043005: Added CallInterfaceDescriptors to all code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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/ic/ia32/handler-compiler-ia32.cc ('k') | src/interface-descriptors.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/ic/call-optimization.h" 9 #include "src/ic/call-optimization.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 __ Push(kScratchRegister); // return value default 653 __ Push(kScratchRegister); // return value default
654 __ PushAddress(ExternalReference::isolate_address(isolate())); 654 __ PushAddress(ExternalReference::isolate_address(isolate()));
655 __ Push(reg); // holder 655 __ Push(reg); // holder
656 __ Push(name()); // name 656 __ Push(name()); // name
657 // Save a pointer to where we pushed the arguments pointer. This will be 657 // Save a pointer to where we pushed the arguments pointer. This will be
658 // passed as the const PropertyAccessorInfo& to the C++ callback. 658 // passed as the const PropertyAccessorInfo& to the C++ callback.
659 659
660 __ PushReturnAddressFrom(scratch4()); 660 __ PushReturnAddressFrom(scratch4());
661 661
662 // Abi for CallApiGetter 662 // Abi for CallApiGetter
663 Register api_function_address = r8; 663 Register api_function_address = ApiGetterDescriptor::function_address();
664 Address getter_address = v8::ToCData<Address>(callback->getter()); 664 Address getter_address = v8::ToCData<Address>(callback->getter());
665 __ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE); 665 __ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE);
666 666
667 CallApiGetterStub stub(isolate()); 667 CallApiGetterStub stub(isolate());
668 __ TailCallStub(&stub); 668 __ TailCallStub(&stub);
669 } 669 }
670 670
671 671
672 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { 672 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) {
673 // Return the constant value. 673 // Return the constant value.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 // Return the generated code. 826 // Return the generated code.
827 return GetCode(kind(), Code::NORMAL, name); 827 return GetCode(kind(), Code::NORMAL, name);
828 } 828 }
829 829
830 830
831 #undef __ 831 #undef __
832 } 832 }
833 } // namespace v8::internal 833 } // namespace v8::internal
834 834
835 #endif // V8_TARGET_ARCH_X64 835 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698