| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 Isolate* isolate, | 251 Isolate* isolate, |
| 252 CodeStubInterfaceDescriptor* descriptor) { | 252 CodeStubInterfaceDescriptor* descriptor) { |
| 253 static Register registers[] = { rdx, rcx, rax }; | 253 static Register registers[] = { rdx, rcx, rax }; |
| 254 descriptor->register_param_count_ = 3; | 254 descriptor->register_param_count_ = 3; |
| 255 descriptor->register_params_ = registers; | 255 descriptor->register_params_ = registers; |
| 256 descriptor->deoptimization_handler_ = | 256 descriptor->deoptimization_handler_ = |
| 257 FUNCTION_ADDR(StoreIC_MissFromStubFailure); | 257 FUNCTION_ADDR(StoreIC_MissFromStubFailure); |
| 258 } | 258 } |
| 259 | 259 |
| 260 | 260 |
| 261 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( | |
| 262 Isolate* isolate, | |
| 263 CodeStubInterfaceDescriptor* descriptor) { | |
| 264 static Register registers[] = { rax, rbx, rcx, rdx }; | |
| 265 descriptor->register_param_count_ = 4; | |
| 266 descriptor->register_params_ = registers; | |
| 267 descriptor->deoptimization_handler_ = | |
| 268 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); | |
| 269 } | |
| 270 | |
| 271 | |
| 272 #define __ ACCESS_MASM(masm) | 261 #define __ ACCESS_MASM(masm) |
| 273 | 262 |
| 274 | 263 |
| 275 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 264 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 276 // Update the static counter each time a new code stub is generated. | 265 // Update the static counter each time a new code stub is generated. |
| 277 Isolate* isolate = masm->isolate(); | 266 Isolate* isolate = masm->isolate(); |
| 278 isolate->counters()->code_stubs()->Increment(); | 267 isolate->counters()->code_stubs()->Increment(); |
| 279 | 268 |
| 280 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 269 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
| 281 int param_count = descriptor->register_param_count_; | 270 int param_count = descriptor->register_param_count_; |
| (...skipping 6529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6811 __ bind(&fast_elements_case); | 6800 __ bind(&fast_elements_case); |
| 6812 GenerateCase(masm, FAST_ELEMENTS); | 6801 GenerateCase(masm, FAST_ELEMENTS); |
| 6813 } | 6802 } |
| 6814 | 6803 |
| 6815 | 6804 |
| 6816 #undef __ | 6805 #undef __ |
| 6817 | 6806 |
| 6818 } } // namespace v8::internal | 6807 } } // namespace v8::internal |
| 6819 | 6808 |
| 6820 #endif // V8_TARGET_ARCH_X64 | 6809 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |