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/ia32/handler-compiler-ia32.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/arm/handler-compiler-arm.cc ('k') | src/ic/x64/handler-compiler-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 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_IA32 7 #if V8_TARGET_ARCH_IA32
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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 658
659 // Save a pointer to where we pushed the arguments. This will be 659 // Save a pointer to where we pushed the arguments. This will be
660 // passed as the const PropertyAccessorInfo& to the C++ callback. 660 // passed as the const PropertyAccessorInfo& to the C++ callback.
661 __ push(esp); 661 __ push(esp);
662 662
663 __ push(name()); // name 663 __ push(name()); // name
664 664
665 __ push(scratch3()); // Restore return address. 665 __ push(scratch3()); // Restore return address.
666 666
667 // Abi for CallApiGetter 667 // Abi for CallApiGetter
668 Register getter_address = edx; 668 Register getter_address = ApiGetterDescriptor::function_address();
669 Address function_address = v8::ToCData<Address>(callback->getter()); 669 Address function_address = v8::ToCData<Address>(callback->getter());
670 __ mov(getter_address, Immediate(function_address)); 670 __ mov(getter_address, Immediate(function_address));
671 671
672 CallApiGetterStub stub(isolate()); 672 CallApiGetterStub stub(isolate());
673 __ TailCallStub(&stub); 673 __ TailCallStub(&stub);
674 } 674 }
675 675
676 676
677 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { 677 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) {
678 // Return the constant value. 678 // Return the constant value.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 // Return the generated code. 843 // Return the generated code.
844 return GetCode(kind(), Code::NORMAL, name); 844 return GetCode(kind(), Code::NORMAL, name);
845 } 845 }
846 846
847 847
848 #undef __ 848 #undef __
849 } 849 }
850 } // namespace v8::internal 850 } // namespace v8::internal
851 851
852 #endif // V8_TARGET_ARCH_IA32 852 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm/handler-compiler-arm.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698