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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 100453009: MIPS: Fix parameter passing in callback store ics on arm (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | « no previous file | no next file » | 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 // 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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 ASSERT(!receiver.is(scratch)); 892 ASSERT(!receiver.is(scratch));
893 893
894 typedef FunctionCallbackArguments FCA; 894 typedef FunctionCallbackArguments FCA;
895 const int stack_space = kFastApiCallArguments + argc + 1; 895 const int stack_space = kFastApiCallArguments + argc + 1;
896 // Assign stack space for the call arguments. 896 // Assign stack space for the call arguments.
897 __ Subu(sp, sp, Operand(stack_space * kPointerSize)); 897 __ Subu(sp, sp, Operand(stack_space * kPointerSize));
898 // Write holder to stack frame. 898 // Write holder to stack frame.
899 __ sw(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize)); 899 __ sw(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize));
900 // Write receiver to stack frame. 900 // Write receiver to stack frame.
901 int index = stack_space - 1; 901 int index = stack_space - 1;
902 __ sw(receiver, MemOperand(sp, index * kPointerSize)); 902 __ sw(receiver, MemOperand(sp, index-- * kPointerSize));
903 // Write the arguments to stack frame. 903 // Write the arguments to stack frame.
904 for (int i = 0; i < argc; i++) { 904 for (int i = 0; i < argc; i++) {
905 ASSERT(!receiver.is(values[i])); 905 ASSERT(!receiver.is(values[i]));
906 ASSERT(!scratch.is(values[i])); 906 ASSERT(!scratch.is(values[i]));
907 __ sw(receiver, MemOperand(sp, index-- * kPointerSize)); 907 __ sw(values[i], MemOperand(sp, index-- * kPointerSize));
908 } 908 }
909 909
910 GenerateFastApiDirectCall(masm, optimization, argc, true); 910 GenerateFastApiDirectCall(masm, optimization, argc, true);
911 } 911 }
912 912
913 913
914 class CallInterceptorCompiler BASE_EMBEDDED { 914 class CallInterceptorCompiler BASE_EMBEDDED {
915 public: 915 public:
916 CallInterceptorCompiler(CallStubCompiler* stub_compiler, 916 CallInterceptorCompiler(CallStubCompiler* stub_compiler,
917 const ParameterCount& arguments, 917 const ParameterCount& arguments,
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 // ----------------------------------- 2885 // -----------------------------------
2886 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2886 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2887 } 2887 }
2888 2888
2889 2889
2890 #undef __ 2890 #undef __
2891 2891
2892 } } // namespace v8::internal 2892 } } // namespace v8::internal
2893 2893
2894 #endif // V8_TARGET_ARCH_MIPS 2894 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698