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

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

Issue 566843004: X87: Added CallInterfaceDescriptors to all code stubs. (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: 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
« no previous file with comments | « no previous file | src/x87/code-stubs-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 660
661 // Save a pointer to where we pushed the arguments. This will be 661 // Save a pointer to where we pushed the arguments. This will be
662 // passed as the const PropertyAccessorInfo& to the C++ callback. 662 // passed as the const PropertyAccessorInfo& to the C++ callback.
663 __ push(esp); 663 __ push(esp);
664 664
665 __ push(name()); // name 665 __ push(name()); // name
666 666
667 __ push(scratch3()); // Restore return address. 667 __ push(scratch3()); // Restore return address.
668 668
669 // Abi for CallApiGetter 669 // Abi for CallApiGetter
670 Register getter_address = edx; 670 Register getter_address = ApiGetterDescriptor::function_address();
671 Address function_address = v8::ToCData<Address>(callback->getter()); 671 Address function_address = v8::ToCData<Address>(callback->getter());
672 __ mov(getter_address, Immediate(function_address)); 672 __ mov(getter_address, Immediate(function_address));
673 673
674 CallApiGetterStub stub(isolate()); 674 CallApiGetterStub stub(isolate());
675 __ TailCallStub(&stub); 675 __ TailCallStub(&stub);
676 } 676 }
677 677
678 678
679 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { 679 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) {
680 // Return the constant value. 680 // Return the constant value.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 // Return the generated code. 845 // Return the generated code.
846 return GetCode(kind(), Code::NORMAL, name); 846 return GetCode(kind(), Code::NORMAL, name);
847 } 847 }
848 848
849 849
850 #undef __ 850 #undef __
851 } 851 }
852 } // namespace v8::internal 852 } // namespace v8::internal
853 853
854 #endif // V8_TARGET_ARCH_X87 854 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/code-stubs-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698