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

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

Issue 2686723004: [stubs] Port LoadFunctionPrototypeStub to CSA (Closed)
Patch Set: Created 3 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
« no previous file with comments | « src/ic/s390/handler-compiler-s390.cc ('k') | src/ic/x87/handler-compiler-x87.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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/ic/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 8
9 #include "src/api-arguments.h" 9 #include "src/api-arguments.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 Heap::kHashTableMapRootIndex); 76 Heap::kHashTableMapRootIndex);
77 __ j(not_equal, miss_label); 77 __ j(not_equal, miss_label);
78 78
79 Label done; 79 Label done;
80 NameDictionaryLookupStub::GenerateNegativeLookup(masm, miss_label, &done, 80 NameDictionaryLookupStub::GenerateNegativeLookup(masm, miss_label, &done,
81 properties, name, scratch1); 81 properties, name, scratch1);
82 __ bind(&done); 82 __ bind(&done);
83 __ DecrementCounter(counters->negative_lookups_miss(), 1); 83 __ DecrementCounter(counters->negative_lookups_miss(), 1);
84 } 84 }
85 85
86 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
87 MacroAssembler* masm, Register receiver, Register result, Register scratch,
88 Label* miss_label) {
89 __ TryGetFunctionPrototype(receiver, result, miss_label);
90 if (!result.is(rax)) __ movp(rax, result);
91 __ ret(0);
92 }
93
94 static void CompileCallLoadPropertyWithInterceptor( 86 static void CompileCallLoadPropertyWithInterceptor(
95 MacroAssembler* masm, Register receiver, Register holder, Register name, 87 MacroAssembler* masm, Register receiver, Register holder, Register name,
96 Handle<JSObject> holder_obj, Runtime::FunctionId id) { 88 Handle<JSObject> holder_obj, Runtime::FunctionId id) {
97 DCHECK(NamedLoadHandlerCompiler::kInterceptorArgsLength == 89 DCHECK(NamedLoadHandlerCompiler::kInterceptorArgsLength ==
98 Runtime::FunctionForId(id)->nargs); 90 Runtime::FunctionForId(id)->nargs);
99 91
100 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsNameIndex == 0); 92 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsNameIndex == 0);
101 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsThisIndex == 1); 93 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsThisIndex == 1);
102 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsHolderIndex == 2); 94 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsHolderIndex == 2);
103 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsLength == 3); 95 STATIC_ASSERT(NamedLoadHandlerCompiler::kInterceptorArgsLength == 3);
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 // Return the generated code. 607 // Return the generated code.
616 return GetCode(kind(), name); 608 return GetCode(kind(), name);
617 } 609 }
618 610
619 611
620 #undef __ 612 #undef __
621 } // namespace internal 613 } // namespace internal
622 } // namespace v8 614 } // namespace v8
623 615
624 #endif // V8_TARGET_ARCH_X64 616 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/s390/handler-compiler-s390.cc ('k') | src/ic/x87/handler-compiler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698