| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 | 129 |
| 130 void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( | 130 void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( |
| 131 Isolate* isolate, | 131 Isolate* isolate, |
| 132 CodeStubInterfaceDescriptor* descriptor) { | 132 CodeStubInterfaceDescriptor* descriptor) { |
| 133 InitializeArrayConstructorDescriptor(isolate, descriptor); | 133 InitializeArrayConstructorDescriptor(isolate, descriptor); |
| 134 } | 134 } |
| 135 | 135 |
| 136 | 136 |
| 137 void CompareNilICStub::InitializeInterfaceDescriptor( |
| 138 Isolate* isolate, |
| 139 CodeStubInterfaceDescriptor* descriptor) { |
| 140 static Register registers[] = { rax }; |
| 141 descriptor->register_param_count_ = 1; |
| 142 descriptor->register_params_ = registers; |
| 143 descriptor->deoptimization_handler_ = |
| 144 FUNCTION_ADDR(CompareNilIC_Miss); |
| 145 descriptor->miss_handler_ = |
| 146 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate); |
| 147 } |
| 148 |
| 149 |
| 137 #define __ ACCESS_MASM(masm) | 150 #define __ ACCESS_MASM(masm) |
| 138 | 151 |
| 139 | 152 |
| 140 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 153 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 141 // Update the static counter each time a new code stub is generated. | 154 // Update the static counter each time a new code stub is generated. |
| 142 Isolate* isolate = masm->isolate(); | 155 Isolate* isolate = masm->isolate(); |
| 143 isolate->counters()->code_stubs()->Increment(); | 156 isolate->counters()->code_stubs()->Increment(); |
| 144 | 157 |
| 145 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 158 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
| 146 int param_count = descriptor->register_param_count_; | 159 int param_count = descriptor->register_param_count_; |
| (...skipping 6621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6768 #endif | 6781 #endif |
| 6769 | 6782 |
| 6770 __ Ret(); | 6783 __ Ret(); |
| 6771 } | 6784 } |
| 6772 | 6785 |
| 6773 #undef __ | 6786 #undef __ |
| 6774 | 6787 |
| 6775 } } // namespace v8::internal | 6788 } } // namespace v8::internal |
| 6776 | 6789 |
| 6777 #endif // V8_TARGET_ARCH_X64 | 6790 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |