| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // x2: key (unused) | 269 // x2: key (unused) |
| 270 // x0: value | 270 // x0: value |
| 271 static Register registers[] = { x1, x2, x0 }; | 271 static Register registers[] = { x1, x2, x0 }; |
| 272 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); | 272 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
| 273 descriptor->register_params_ = registers; | 273 descriptor->register_params_ = registers; |
| 274 descriptor->deoptimization_handler_ = | 274 descriptor->deoptimization_handler_ = |
| 275 FUNCTION_ADDR(StoreIC_MissFromStubFailure); | 275 FUNCTION_ADDR(StoreIC_MissFromStubFailure); |
| 276 } | 276 } |
| 277 | 277 |
| 278 | 278 |
| 279 #if 0 |
| 280 // TODO(jbramley): This was added in r15635, then reverted in r15674, but it |
| 281 // will come back again in r15713. |
| 282 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( |
| 283 Isolate* isolate, |
| 284 CodeStubInterfaceDescriptor* descriptor) { |
| 285 // x0: value |
| 286 // x3: target map |
| 287 // x1: key |
| 288 // x2: receiver |
| 289 static Register registers[] = { x0, x3, x1, x2 }; |
| 290 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); |
| 291 descriptor->register_params_ = registers; |
| 292 descriptor->deoptimization_handler_ = |
| 293 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); |
| 294 } |
| 295 #endif |
| 296 |
| 297 |
| 279 #define __ ACCESS_MASM(masm) | 298 #define __ ACCESS_MASM(masm) |
| 280 | 299 |
| 281 | 300 |
| 282 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 301 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 283 // Update the static counter each time a new code stub is generated. | 302 // Update the static counter each time a new code stub is generated. |
| 284 Isolate* isolate = masm->isolate(); | 303 Isolate* isolate = masm->isolate(); |
| 285 isolate->counters()->code_stubs()->Increment(); | 304 isolate->counters()->code_stubs()->Increment(); |
| 286 | 305 |
| 287 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 306 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
| 288 int param_count = descriptor->register_param_count_; | 307 int param_count = descriptor->register_param_count_; |
| (...skipping 6772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7061 __ Bind(&fast_elements_case); | 7080 __ Bind(&fast_elements_case); |
| 7062 GenerateCase(masm, FAST_ELEMENTS); | 7081 GenerateCase(masm, FAST_ELEMENTS); |
| 7063 } | 7082 } |
| 7064 | 7083 |
| 7065 | 7084 |
| 7066 #undef __ | 7085 #undef __ |
| 7067 | 7086 |
| 7068 } } // namespace v8::internal | 7087 } } // namespace v8::internal |
| 7069 | 7088 |
| 7070 #endif // V8_TARGET_ARCH_A64 | 7089 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |