OLD | NEW |
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 Isolate* isolate, | 234 Isolate* isolate, |
235 CodeStubInterfaceDescriptor* descriptor) { | 235 CodeStubInterfaceDescriptor* descriptor) { |
236 static Register registers[] = { eax }; | 236 static Register registers[] = { eax }; |
237 descriptor->register_param_count_ = 1; | 237 descriptor->register_param_count_ = 1; |
238 descriptor->register_params_ = registers; | 238 descriptor->register_params_ = registers; |
239 descriptor->deoptimization_handler_ = | 239 descriptor->deoptimization_handler_ = |
240 FUNCTION_ADDR(UnaryOpIC_Miss); | 240 FUNCTION_ADDR(UnaryOpIC_Miss); |
241 } | 241 } |
242 | 242 |
243 | 243 |
| 244 void StoreGlobalStub::InitializeInterfaceDescriptor( |
| 245 Isolate* isolate, |
| 246 CodeStubInterfaceDescriptor* descriptor) { |
| 247 static Register registers[] = { edx, ecx, eax }; |
| 248 descriptor->register_param_count_ = 3; |
| 249 descriptor->register_params_ = registers; |
| 250 descriptor->deoptimization_handler_ = |
| 251 FUNCTION_ADDR(StoreIC_MissFromStubFailure); |
| 252 } |
| 253 |
| 254 |
244 #define __ ACCESS_MASM(masm) | 255 #define __ ACCESS_MASM(masm) |
245 | 256 |
246 | 257 |
247 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 258 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
248 // Update the static counter each time a new code stub is generated. | 259 // Update the static counter each time a new code stub is generated. |
249 Isolate* isolate = masm->isolate(); | 260 Isolate* isolate = masm->isolate(); |
250 isolate->counters()->code_stubs()->Increment(); | 261 isolate->counters()->code_stubs()->Increment(); |
251 | 262 |
252 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 263 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
253 int param_count = descriptor->register_param_count_; | 264 int param_count = descriptor->register_param_count_; |
(...skipping 7457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7711 __ bind(&fast_elements_case); | 7722 __ bind(&fast_elements_case); |
7712 GenerateCase(masm, FAST_ELEMENTS); | 7723 GenerateCase(masm, FAST_ELEMENTS); |
7713 } | 7724 } |
7714 | 7725 |
7715 | 7726 |
7716 #undef __ | 7727 #undef __ |
7717 | 7728 |
7718 } } // namespace v8::internal | 7729 } } // namespace v8::internal |
7719 | 7730 |
7720 #endif // V8_TARGET_ARCH_IA32 | 7731 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |