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

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

Issue 132113004: Fix compiler error on MacOS, remove unused ParameterCount member in CallInterceptorCompiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | src/ia32/stub-cache-ia32.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 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 optimization, 854 optimization,
855 argc, 855 argc,
856 receiver, 856 receiver,
857 true); 857 true);
858 } 858 }
859 859
860 860
861 class CallInterceptorCompiler BASE_EMBEDDED { 861 class CallInterceptorCompiler BASE_EMBEDDED {
862 public: 862 public:
863 CallInterceptorCompiler(CallStubCompiler* stub_compiler, 863 CallInterceptorCompiler(CallStubCompiler* stub_compiler,
864 const ParameterCount& arguments,
865 Register name) 864 Register name)
866 : stub_compiler_(stub_compiler), 865 : stub_compiler_(stub_compiler),
867 arguments_(arguments),
868 name_(name) {} 866 name_(name) {}
869 867
870 void Compile(MacroAssembler* masm, 868 void Compile(MacroAssembler* masm,
871 Handle<JSObject> object, 869 Handle<JSObject> object,
872 Handle<JSObject> holder, 870 Handle<JSObject> holder,
873 Handle<Name> name, 871 Handle<Name> name,
874 LookupResult* lookup, 872 LookupResult* lookup,
875 Register receiver, 873 Register receiver,
876 Register scratch1, 874 Register scratch1,
877 Register scratch2, 875 Register scratch2,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 __ pop(holder); 988 __ pop(holder);
991 __ pop(receiver); 989 __ pop(receiver);
992 } 990 }
993 // If interceptor returns no-result sentinel, call the constant function. 991 // If interceptor returns no-result sentinel, call the constant function.
994 __ LoadRoot(scratch, Heap::kNoInterceptorResultSentinelRootIndex); 992 __ LoadRoot(scratch, Heap::kNoInterceptorResultSentinelRootIndex);
995 __ cmp(r0, scratch); 993 __ cmp(r0, scratch);
996 __ b(ne, interceptor_succeeded); 994 __ b(ne, interceptor_succeeded);
997 } 995 }
998 996
999 CallStubCompiler* stub_compiler_; 997 CallStubCompiler* stub_compiler_;
1000 const ParameterCount& arguments_;
1001 Register name_; 998 Register name_;
1002 }; 999 };
1003 1000
1004 1001
1005 void StubCompiler::GenerateTailCall(MacroAssembler* masm, Handle<Code> code) { 1002 void StubCompiler::GenerateTailCall(MacroAssembler* masm, Handle<Code> code) {
1006 __ Jump(code, RelocInfo::CODE_TARGET); 1003 __ Jump(code, RelocInfo::CODE_TARGET);
1007 } 1004 }
1008 1005
1009 1006
1010 #undef __ 1007 #undef __
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 GenerateNameCheck(name, &miss); 1560 GenerateNameCheck(name, &miss);
1564 1561
1565 // Get the number of arguments. 1562 // Get the number of arguments.
1566 const int argc = arguments().immediate(); 1563 const int argc = arguments().immediate();
1567 LookupResult lookup(isolate()); 1564 LookupResult lookup(isolate());
1568 LookupPostInterceptor(holder, name, &lookup); 1565 LookupPostInterceptor(holder, name, &lookup);
1569 1566
1570 // Get the receiver from the stack. 1567 // Get the receiver from the stack.
1571 __ ldr(r1, MemOperand(sp, argc * kPointerSize)); 1568 __ ldr(r1, MemOperand(sp, argc * kPointerSize));
1572 1569
1573 CallInterceptorCompiler compiler(this, arguments(), r2); 1570 CallInterceptorCompiler compiler(this, r2);
1574 compiler.Compile(masm(), object, holder, name, &lookup, r1, r3, r4, r0, 1571 compiler.Compile(masm(), object, holder, name, &lookup, r1, r3, r4, r0,
1575 &miss); 1572 &miss);
1576 1573
1577 // Move returned value, the function to call, to r1. 1574 // Move returned value, the function to call, to r1.
1578 __ mov(r1, r0); 1575 __ mov(r1, r0);
1579 // Restore receiver. 1576 // Restore receiver.
1580 __ ldr(r0, MemOperand(sp, argc * kPointerSize)); 1577 __ ldr(r0, MemOperand(sp, argc * kPointerSize));
1581 1578
1582 GenerateJumpFunction(object, r1, &miss); 1579 GenerateJumpFunction(object, r1, &miss);
1583 1580
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 // ----------------------------------- 1971 // -----------------------------------
1975 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1972 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1976 } 1973 }
1977 1974
1978 1975
1979 #undef __ 1976 #undef __
1980 1977
1981 } } // namespace v8::internal 1978 } } // namespace v8::internal
1982 1979
1983 #endif // V8_TARGET_ARCH_ARM 1980 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698