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

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

Issue 19214002: Revert 15635: Turn ElementsTransitionAndStore stub into a HydrogenCodeStub (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/flag-definitions.h ('k') | src/ic.h » ('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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 Isolate* isolate, 255 Isolate* isolate,
256 CodeStubInterfaceDescriptor* descriptor) { 256 CodeStubInterfaceDescriptor* descriptor) {
257 static Register registers[] = { edx, ecx, eax }; 257 static Register registers[] = { edx, ecx, eax };
258 descriptor->register_param_count_ = 3; 258 descriptor->register_param_count_ = 3;
259 descriptor->register_params_ = registers; 259 descriptor->register_params_ = registers;
260 descriptor->deoptimization_handler_ = 260 descriptor->deoptimization_handler_ =
261 FUNCTION_ADDR(StoreIC_MissFromStubFailure); 261 FUNCTION_ADDR(StoreIC_MissFromStubFailure);
262 } 262 }
263 263
264 264
265 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
266 Isolate* isolate,
267 CodeStubInterfaceDescriptor* descriptor) {
268 static Register registers[] = { eax, ebx, ecx, edx };
269 descriptor->register_param_count_ = 4;
270 descriptor->register_params_ = registers;
271 descriptor->deoptimization_handler_ =
272 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
273 }
274
275
276 #define __ ACCESS_MASM(masm) 265 #define __ ACCESS_MASM(masm)
277 266
278 267
279 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 268 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
280 // Update the static counter each time a new code stub is generated. 269 // Update the static counter each time a new code stub is generated.
281 Isolate* isolate = masm->isolate(); 270 Isolate* isolate = masm->isolate();
282 isolate->counters()->code_stubs()->Increment(); 271 isolate->counters()->code_stubs()->Increment();
283 272
284 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); 273 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate);
285 int param_count = descriptor->register_param_count_; 274 int param_count = descriptor->register_param_count_;
(...skipping 7495 matching lines...) Expand 10 before | Expand all | Expand 10 after
7781 __ bind(&fast_elements_case); 7770 __ bind(&fast_elements_case);
7782 GenerateCase(masm, FAST_ELEMENTS); 7771 GenerateCase(masm, FAST_ELEMENTS);
7783 } 7772 }
7784 7773
7785 7774
7786 #undef __ 7775 #undef __
7787 7776
7788 } } // namespace v8::internal 7777 } } // namespace v8::internal
7789 7778
7790 #endif // V8_TARGET_ARCH_IA32 7779 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698