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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 Isolate* isolate, | 55 Isolate* isolate, |
56 CodeStubInterfaceDescriptor* descriptor) { | 56 CodeStubInterfaceDescriptor* descriptor) { |
57 static Register registers[] = { rdx, rax }; | 57 static Register registers[] = { rdx, rax }; |
58 descriptor->register_param_count_ = 2; | 58 descriptor->register_param_count_ = 2; |
59 descriptor->register_params_ = registers; | 59 descriptor->register_params_ = registers; |
60 descriptor->deoptimization_handler_ = | 60 descriptor->deoptimization_handler_ = |
61 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | 61 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
62 } | 62 } |
63 | 63 |
64 | 64 |
| 65 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( |
| 66 Isolate* isolate, |
| 67 CodeStubInterfaceDescriptor* descriptor) { |
| 68 static Register registers[] = { rdx, rcx, rax }; |
| 69 descriptor->register_param_count_ = 3; |
| 70 descriptor->register_params_ = registers; |
| 71 descriptor->deoptimization_handler_ = |
| 72 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure); |
| 73 } |
| 74 |
| 75 |
65 void TransitionElementsKindStub::InitializeInterfaceDescriptor( | 76 void TransitionElementsKindStub::InitializeInterfaceDescriptor( |
66 Isolate* isolate, | 77 Isolate* isolate, |
67 CodeStubInterfaceDescriptor* descriptor) { | 78 CodeStubInterfaceDescriptor* descriptor) { |
68 static Register registers[] = { rax, rbx }; | 79 static Register registers[] = { rax, rbx }; |
69 descriptor->register_param_count_ = 2; | 80 descriptor->register_param_count_ = 2; |
70 descriptor->register_params_ = registers; | 81 descriptor->register_params_ = registers; |
71 descriptor->deoptimization_handler_ = | 82 descriptor->deoptimization_handler_ = |
72 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; | 83 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; |
73 } | 84 } |
74 | 85 |
(...skipping 6796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6871 #endif | 6882 #endif |
6872 | 6883 |
6873 __ Ret(); | 6884 __ Ret(); |
6874 } | 6885 } |
6875 | 6886 |
6876 #undef __ | 6887 #undef __ |
6877 | 6888 |
6878 } } // namespace v8::internal | 6889 } } // namespace v8::internal |
6879 | 6890 |
6880 #endif // V8_TARGET_ARCH_X64 | 6891 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |