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/mips64/code-stubs-mips64.cc

Issue 579273002: MIPS: Convert KeyedLoad indexed interceptor case to a Handler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | 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 // 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 __ DropAndRet(3); 1887 __ DropAndRet(3);
1888 1888
1889 // Do the runtime call to allocate the arguments object. 1889 // Do the runtime call to allocate the arguments object.
1890 // a2 = argument count (tagged) 1890 // a2 = argument count (tagged)
1891 __ bind(&runtime); 1891 __ bind(&runtime);
1892 __ sd(a2, MemOperand(sp, 0 * kPointerSize)); // Patch argument count. 1892 __ sd(a2, MemOperand(sp, 0 * kPointerSize)); // Patch argument count.
1893 __ TailCallRuntime(Runtime::kNewSloppyArguments, 3, 1); 1893 __ TailCallRuntime(Runtime::kNewSloppyArguments, 3, 1);
1894 } 1894 }
1895 1895
1896 1896
1897 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) {
1898 // Return address is in ra.
1899 Label slow;
1900
1901 Register receiver = LoadDescriptor::ReceiverRegister();
1902 Register key = LoadDescriptor::NameRegister();
1903
1904 // Check that the key is an array index, that is Uint32.
1905 __ And(t0, key, Operand(kSmiTagMask | kSmiSignMask));
1906 __ Branch(&slow, ne, t0, Operand(zero_reg));
1907
1908 // Everything is fine, call runtime.
1909 __ Push(receiver, key); // Receiver, key.
1910
1911 // Perform tail call to the entry.
1912 __ TailCallExternalReference(
1913 ExternalReference(IC_Utility(IC::kLoadElementWithInterceptor),
1914 masm->isolate()),
1915 2, 1);
1916
1917 __ bind(&slow);
1918 PropertyAccessCompiler::TailCallBuiltin(
1919 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC));
1920 }
1921
1922
1897 void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { 1923 void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) {
1898 // sp[0] : number of parameters 1924 // sp[0] : number of parameters
1899 // sp[4] : receiver displacement 1925 // sp[4] : receiver displacement
1900 // sp[8] : function 1926 // sp[8] : function
1901 // Check if the calling frame is an arguments adaptor frame. 1927 // Check if the calling frame is an arguments adaptor frame.
1902 Label adaptor_frame, try_allocate, runtime; 1928 Label adaptor_frame, try_allocate, runtime;
1903 __ ld(a2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); 1929 __ ld(a2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
1904 __ ld(a3, MemOperand(a2, StandardFrameConstants::kContextOffset)); 1930 __ ld(a3, MemOperand(a2, StandardFrameConstants::kContextOffset));
1905 __ Branch(&adaptor_frame, 1931 __ Branch(&adaptor_frame,
1906 eq, 1932 eq,
(...skipping 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after
4897 MemOperand(fp, 6 * kPointerSize), 4923 MemOperand(fp, 6 * kPointerSize),
4898 NULL); 4924 NULL);
4899 } 4925 }
4900 4926
4901 4927
4902 #undef __ 4928 #undef __
4903 4929
4904 } } // namespace v8::internal 4930 } } // namespace v8::internal
4905 4931
4906 #endif // V8_TARGET_ARCH_MIPS64 4932 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698