| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 132 } | 132 } | 
| 133 | 133 | 
| 134 | 134 | 
| 135 void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( | 135 void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( | 
| 136     Isolate* isolate, | 136     Isolate* isolate, | 
| 137     CodeStubInterfaceDescriptor* descriptor) { | 137     CodeStubInterfaceDescriptor* descriptor) { | 
| 138   InitializeArrayConstructorDescriptor(isolate, descriptor); | 138   InitializeArrayConstructorDescriptor(isolate, descriptor); | 
| 139 } | 139 } | 
| 140 | 140 | 
| 141 | 141 | 
|  | 142 void CompareNilICStub::InitializeInterfaceDescriptor( | 
|  | 143     Isolate* isolate, | 
|  | 144     CodeStubInterfaceDescriptor* descriptor) { | 
|  | 145   static Register registers[] = { eax }; | 
|  | 146   descriptor->register_param_count_ = 1; | 
|  | 147   descriptor->register_params_ = registers; | 
|  | 148   descriptor->deoptimization_handler_ = | 
|  | 149       FUNCTION_ADDR(CompareNilIC_Miss); | 
|  | 150   descriptor->miss_handler_ = | 
|  | 151       ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate); | 
|  | 152 } | 
|  | 153 | 
|  | 154 | 
| 142 #define __ ACCESS_MASM(masm) | 155 #define __ ACCESS_MASM(masm) | 
| 143 | 156 | 
| 144 | 157 | 
| 145 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 158 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 
| 146   // Update the static counter each time a new code stub is generated. | 159   // Update the static counter each time a new code stub is generated. | 
| 147   Isolate* isolate = masm->isolate(); | 160   Isolate* isolate = masm->isolate(); | 
| 148   isolate->counters()->code_stubs()->Increment(); | 161   isolate->counters()->code_stubs()->Increment(); | 
| 149 | 162 | 
| 150   CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 163   CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 
| 151   int param_count = descriptor->register_param_count_; | 164   int param_count = descriptor->register_param_count_; | 
| (...skipping 7557 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 7709   // Restore ecx. | 7722   // Restore ecx. | 
| 7710   __ pop(ecx); | 7723   __ pop(ecx); | 
| 7711   __ ret(0); | 7724   __ ret(0); | 
| 7712 } | 7725 } | 
| 7713 | 7726 | 
| 7714 #undef __ | 7727 #undef __ | 
| 7715 | 7728 | 
| 7716 } }  // namespace v8::internal | 7729 } }  // namespace v8::internal | 
| 7717 | 7730 | 
| 7718 #endif  // V8_TARGET_ARCH_IA32 | 7731 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW | 
|---|