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

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

Issue 22184004: Desugar bitwise negation into XOR and kill all UnaryOp stuff. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. Created 7 years, 4 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
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 static Register registers[] = { eax }; 243 static Register registers[] = { eax };
244 descriptor->register_param_count_ = 1; 244 descriptor->register_param_count_ = 1;
245 descriptor->register_params_ = registers; 245 descriptor->register_params_ = registers;
246 descriptor->deoptimization_handler_ = 246 descriptor->deoptimization_handler_ =
247 FUNCTION_ADDR(ToBooleanIC_Miss); 247 FUNCTION_ADDR(ToBooleanIC_Miss);
248 descriptor->SetMissHandler( 248 descriptor->SetMissHandler(
249 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate)); 249 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate));
250 } 250 }
251 251
252 252
253 void UnaryOpStub::InitializeInterfaceDescriptor(
254 Isolate* isolate,
255 CodeStubInterfaceDescriptor* descriptor) {
256 static Register registers[] = { eax };
257 descriptor->register_param_count_ = 1;
258 descriptor->register_params_ = registers;
259 descriptor->deoptimization_handler_ =
260 FUNCTION_ADDR(UnaryOpIC_Miss);
261 }
262
263
264 void StoreGlobalStub::InitializeInterfaceDescriptor( 253 void StoreGlobalStub::InitializeInterfaceDescriptor(
265 Isolate* isolate, 254 Isolate* isolate,
266 CodeStubInterfaceDescriptor* descriptor) { 255 CodeStubInterfaceDescriptor* descriptor) {
267 static Register registers[] = { edx, ecx, eax }; 256 static Register registers[] = { edx, ecx, eax };
268 descriptor->register_param_count_ = 3; 257 descriptor->register_param_count_ = 3;
269 descriptor->register_params_ = registers; 258 descriptor->register_params_ = registers;
270 descriptor->deoptimization_handler_ = 259 descriptor->deoptimization_handler_ =
271 FUNCTION_ADDR(StoreIC_MissFromStubFailure); 260 FUNCTION_ADDR(StoreIC_MissFromStubFailure);
272 } 261 }
273 262
(...skipping 7482 matching lines...) Expand 10 before | Expand all | Expand 10 after
7756 __ bind(&fast_elements_case); 7745 __ bind(&fast_elements_case);
7757 GenerateCase(masm, FAST_ELEMENTS); 7746 GenerateCase(masm, FAST_ELEMENTS);
7758 } 7747 }
7759 7748
7760 7749
7761 #undef __ 7750 #undef __
7762 7751
7763 } } // namespace v8::internal 7752 } } // namespace v8::internal
7764 7753
7765 #endif // V8_TARGET_ARCH_IA32 7754 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698