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

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

Issue 18881004: Turn ElementsTransitionAndStore stub into a HydrogenCodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE 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
265 #define __ ACCESS_MASM(masm) 276 #define __ ACCESS_MASM(masm)
266 277
267 278
268 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 279 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
269 // Update the static counter each time a new code stub is generated. 280 // Update the static counter each time a new code stub is generated.
270 Isolate* isolate = masm->isolate(); 281 Isolate* isolate = masm->isolate();
271 isolate->counters()->code_stubs()->Increment(); 282 isolate->counters()->code_stubs()->Increment();
272 283
273 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); 284 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate);
274 int param_count = descriptor->register_param_count_; 285 int param_count = descriptor->register_param_count_;
(...skipping 7479 matching lines...) Expand 10 before | Expand all | Expand 10 after
7754 __ bind(&fast_elements_case); 7765 __ bind(&fast_elements_case);
7755 GenerateCase(masm, FAST_ELEMENTS); 7766 GenerateCase(masm, FAST_ELEMENTS);
7756 } 7767 }
7757 7768
7758 7769
7759 #undef __ 7770 #undef __
7760 7771
7761 } } // namespace v8::internal 7772 } } // namespace v8::internal
7762 7773
7763 #endif // V8_TARGET_ARCH_IA32 7774 #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