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

Issue 18357004: Revert r15419: "Generate StoreGlobal stubs with Hydrogen" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/stub-cache.cc ('k') | src/x64/lithium-gap-resolver-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 2013 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
11 // with the distribution. 11 // with the distribution.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 static Register registers[] = { rax }; 219 static Register registers[] = { rax };
220 descriptor->register_param_count_ = 1; 220 descriptor->register_param_count_ = 1;
221 descriptor->register_params_ = registers; 221 descriptor->register_params_ = registers;
222 descriptor->deoptimization_handler_ = 222 descriptor->deoptimization_handler_ =
223 FUNCTION_ADDR(ToBooleanIC_Miss); 223 FUNCTION_ADDR(ToBooleanIC_Miss);
224 descriptor->SetMissHandler( 224 descriptor->SetMissHandler(
225 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate)); 225 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate));
226 } 226 }
227 227
228 228
229 void StoreGlobalStub::InitializeInterfaceDescriptor(
230 Isolate* isolate,
231 CodeStubInterfaceDescriptor* descriptor) {
232 static Register registers[] = { rdx, rcx, rax };
233 descriptor->register_param_count_ = 3;
234 descriptor->register_params_ = registers;
235 descriptor->deoptimization_handler_ =
236 FUNCTION_ADDR(StoreIC_MissFromStubFailure);
237 }
238
239
240 #define __ ACCESS_MASM(masm) 229 #define __ ACCESS_MASM(masm)
241 230
242 231
243 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 232 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
244 // Update the static counter each time a new code stub is generated. 233 // Update the static counter each time a new code stub is generated.
245 Isolate* isolate = masm->isolate(); 234 Isolate* isolate = masm->isolate();
246 isolate->counters()->code_stubs()->Increment(); 235 isolate->counters()->code_stubs()->Increment();
247 236
248 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); 237 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate);
249 int param_count = descriptor->register_param_count_; 238 int param_count = descriptor->register_param_count_;
(...skipping 6759 matching lines...) Expand 10 before | Expand all | Expand 10 after
7009 __ bind(&fast_elements_case); 6998 __ bind(&fast_elements_case);
7010 GenerateCase(masm, FAST_ELEMENTS); 6999 GenerateCase(masm, FAST_ELEMENTS);
7011 } 7000 }
7012 7001
7013 7002
7014 #undef __ 7003 #undef __
7015 7004
7016 } } // namespace v8::internal 7005 } } // namespace v8::internal
7017 7006
7018 #endif // V8_TARGET_ARCH_X64 7007 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/x64/lithium-gap-resolver-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698