| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 83 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
| 84 CodeStubInterfaceDescriptor* descriptor) { | 84 CodeStubInterfaceDescriptor* descriptor) { |
| 85 Register registers[] = { rcx, rbx, rax }; | 85 Register registers[] = { rcx, rbx, rax }; |
| 86 descriptor->Initialize( | 86 descriptor->Initialize( |
| 87 ARRAY_SIZE(registers), registers, | 87 ARRAY_SIZE(registers), registers, |
| 88 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry); | 88 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry); |
| 89 } | 89 } |
| 90 | 90 |
| 91 | 91 |
| 92 void LoadFieldStub::InitializeInterfaceDescriptor( | |
| 93 CodeStubInterfaceDescriptor* descriptor) { | |
| 94 Register registers[] = { rax }; | |
| 95 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 96 } | |
| 97 | |
| 98 | |
| 99 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | |
| 100 CodeStubInterfaceDescriptor* descriptor) { | |
| 101 Register registers[] = { rdx }; | |
| 102 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 103 } | |
| 104 | |
| 105 | |
| 106 void StringLengthStub::InitializeInterfaceDescriptor( | |
| 107 CodeStubInterfaceDescriptor* descriptor) { | |
| 108 Register registers[] = { rax, rcx }; | |
| 109 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 110 } | |
| 111 | |
| 112 | |
| 113 void KeyedStringLengthStub::InitializeInterfaceDescriptor( | |
| 114 CodeStubInterfaceDescriptor* descriptor) { | |
| 115 Register registers[] = { rdx, rax }; | |
| 116 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 117 } | |
| 118 | |
| 119 | |
| 120 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( | 92 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( |
| 121 CodeStubInterfaceDescriptor* descriptor) { | 93 CodeStubInterfaceDescriptor* descriptor) { |
| 122 Register registers[] = { rdx, rcx, rax }; | 94 Register registers[] = { rdx, rcx, rax }; |
| 123 descriptor->Initialize( | 95 descriptor->Initialize( |
| 124 ARRAY_SIZE(registers), registers, | 96 ARRAY_SIZE(registers), registers, |
| 125 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); | 97 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); |
| 126 } | 98 } |
| 127 | 99 |
| 128 | 100 |
| 129 void TransitionElementsKindStub::InitializeInterfaceDescriptor( | 101 void TransitionElementsKindStub::InitializeInterfaceDescriptor( |
| (...skipping 4848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4978 return_value_operand, | 4950 return_value_operand, |
| 4979 NULL); | 4951 NULL); |
| 4980 } | 4952 } |
| 4981 | 4953 |
| 4982 | 4954 |
| 4983 #undef __ | 4955 #undef __ |
| 4984 | 4956 |
| 4985 } } // namespace v8::internal | 4957 } } // namespace v8::internal |
| 4986 | 4958 |
| 4987 #endif // V8_TARGET_ARCH_X64 | 4959 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |