| OLD | NEW |
| 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 static Register registers[] = { rax }; | 219 static Register registers[] = { rax }; |
| 220 descriptor->register_param_count_ = 1; | 220 descriptor->register_param_count_ = 1; |
| 221 descriptor->register_params_ = registers; | 221 descriptor->register_params_ = registers; |
| 222 descriptor->deoptimization_handler_ = | 222 descriptor->deoptimization_handler_ = |
| 223 FUNCTION_ADDR(ToBooleanIC_Miss); | 223 FUNCTION_ADDR(ToBooleanIC_Miss); |
| 224 descriptor->SetMissHandler( | 224 descriptor->SetMissHandler( |
| 225 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate)); | 225 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate)); |
| 226 } | 226 } |
| 227 | 227 |
| 228 | 228 |
| 229 void StoreGlobalStub::InitializeInterfaceDescriptor( |
| 230 Isolate* isolate, |
| 231 CodeStubInterfaceDescriptor* descriptor) { |
| 232 static Register registers[] = { rdx, rcx, rax }; |
| 233 descriptor->register_param_count_ = 3; |
| 234 descriptor->register_params_ = registers; |
| 235 descriptor->deoptimization_handler_ = |
| 236 FUNCTION_ADDR(StoreIC_MissFromStubFailure); |
| 237 } |
| 238 |
| 239 |
| 229 #define __ ACCESS_MASM(masm) | 240 #define __ ACCESS_MASM(masm) |
| 230 | 241 |
| 231 | 242 |
| 232 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 243 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 233 // Update the static counter each time a new code stub is generated. | 244 // Update the static counter each time a new code stub is generated. |
| 234 Isolate* isolate = masm->isolate(); | 245 Isolate* isolate = masm->isolate(); |
| 235 isolate->counters()->code_stubs()->Increment(); | 246 isolate->counters()->code_stubs()->Increment(); |
| 236 | 247 |
| 237 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 248 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
| 238 int param_count = descriptor->register_param_count_; | 249 int param_count = descriptor->register_param_count_; |
| (...skipping 6758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6997 __ bind(&fast_elements_case); | 7008 __ bind(&fast_elements_case); |
| 6998 GenerateCase(masm, FAST_ELEMENTS); | 7009 GenerateCase(masm, FAST_ELEMENTS); |
| 6999 } | 7010 } |
| 7000 | 7011 |
| 7001 | 7012 |
| 7002 #undef __ | 7013 #undef __ |
| 7003 | 7014 |
| 7004 } } // namespace v8::internal | 7015 } } // namespace v8::internal |
| 7005 | 7016 |
| 7006 #endif // V8_TARGET_ARCH_X64 | 7017 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |