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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
(...skipping 4169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4180 | 4180 |
4181 void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime( | 4181 void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime( |
4182 Isolate* isolate) { | 4182 Isolate* isolate) { |
4183 StoreBufferOverflowStub stub1(isolate, kDontSaveFPRegs); | 4183 StoreBufferOverflowStub stub1(isolate, kDontSaveFPRegs); |
4184 stub1.GetCode(); | 4184 stub1.GetCode(); |
4185 StoreBufferOverflowStub stub2(isolate, kSaveFPRegs); | 4185 StoreBufferOverflowStub stub2(isolate, kSaveFPRegs); |
4186 stub2.GetCode(); | 4186 stub2.GetCode(); |
4187 } | 4187 } |
4188 | 4188 |
4189 | 4189 |
4190 bool CodeStub::CanUseFPRegisters() { | |
4191 return true; // Always have SSE2 on x64. | |
4192 } | |
4193 | |
4194 | |
4195 // Takes the input in 3 registers: address_ value_ and object_. A pointer to | 4190 // Takes the input in 3 registers: address_ value_ and object_. A pointer to |
4196 // the value has just been written into the object, now this stub makes sure | 4191 // the value has just been written into the object, now this stub makes sure |
4197 // we keep the GC informed. The word in the object where the value has been | 4192 // we keep the GC informed. The word in the object where the value has been |
4198 // written is in the address register. | 4193 // written is in the address register. |
4199 void RecordWriteStub::Generate(MacroAssembler* masm) { | 4194 void RecordWriteStub::Generate(MacroAssembler* masm) { |
4200 Label skip_to_incremental_noncompacting; | 4195 Label skip_to_incremental_noncompacting; |
4201 Label skip_to_incremental_compacting; | 4196 Label skip_to_incremental_compacting; |
4202 | 4197 |
4203 // The first two instructions are generated with labels so as to get the | 4198 // The first two instructions are generated with labels so as to get the |
4204 // offset fixed up correctly by the bind(Label*) call. We patch it back and | 4199 // offset fixed up correctly by the bind(Label*) call. We patch it back and |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5017 return_value_operand, | 5012 return_value_operand, |
5018 NULL); | 5013 NULL); |
5019 } | 5014 } |
5020 | 5015 |
5021 | 5016 |
5022 #undef __ | 5017 #undef __ |
5023 | 5018 |
5024 } } // namespace v8::internal | 5019 } } // namespace v8::internal |
5025 | 5020 |
5026 #endif // V8_TARGET_ARCH_X64 | 5021 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |