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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 14367018: Add monomorphic CompareNilICs and Crankshaft support (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 8 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/type-info.cc ('k') | src/x64/full-codegen-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 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 129
130 void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( 130 void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor(
131 Isolate* isolate, 131 Isolate* isolate,
132 CodeStubInterfaceDescriptor* descriptor) { 132 CodeStubInterfaceDescriptor* descriptor) {
133 InitializeArrayConstructorDescriptor(isolate, descriptor); 133 InitializeArrayConstructorDescriptor(isolate, descriptor);
134 } 134 }
135 135
136 136
137 void CompareNilICStub::InitializeInterfaceDescriptor(
138 Isolate* isolate,
139 CodeStubInterfaceDescriptor* descriptor) {
140 static Register registers[] = { rax };
141 descriptor->register_param_count_ = 1;
142 descriptor->register_params_ = registers;
143 descriptor->deoptimization_handler_ =
144 FUNCTION_ADDR(CompareNilIC_Miss);
145 descriptor->miss_handler_ =
146 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate);
147 }
148
149
137 #define __ ACCESS_MASM(masm) 150 #define __ ACCESS_MASM(masm)
138 151
139 152
140 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 153 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
141 // Update the static counter each time a new code stub is generated. 154 // Update the static counter each time a new code stub is generated.
142 Isolate* isolate = masm->isolate(); 155 Isolate* isolate = masm->isolate();
143 isolate->counters()->code_stubs()->Increment(); 156 isolate->counters()->code_stubs()->Increment();
144 157
145 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); 158 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate);
146 int param_count = descriptor->register_param_count_; 159 int param_count = descriptor->register_param_count_;
(...skipping 6621 matching lines...) Expand 10 before | Expand all | Expand 10 after
6768 #endif 6781 #endif
6769 6782
6770 __ Ret(); 6783 __ Ret();
6771 } 6784 }
6772 6785
6773 #undef __ 6786 #undef __
6774 6787
6775 } } // namespace v8::internal 6788 } } // namespace v8::internal
6776 6789
6777 #endif // V8_TARGET_ARCH_X64 6790 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698