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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 private: | 163 private: |
164 Register const result_; | 164 Register const result_; |
165 }; | 165 }; |
166 | 166 |
167 | 167 |
168 class OutOfLineLoadNaN final : public OutOfLineCode { | 168 class OutOfLineLoadNaN final : public OutOfLineCode { |
169 public: | 169 public: |
170 OutOfLineLoadNaN(CodeGenerator* gen, XMMRegister result) | 170 OutOfLineLoadNaN(CodeGenerator* gen, XMMRegister result) |
171 : OutOfLineCode(gen), result_(result) {} | 171 : OutOfLineCode(gen), result_(result) {} |
172 | 172 |
173 void Generate() final { __ Pcmpeqd(result_, result_); } | 173 void Generate() final { |
174 __ xorpd(result_, result_); | |
Benedikt Meurer
2016/08/03 03:24:34
Please use Xorpd and Divsd here.
ahaas
2016/08/03 07:17:14
Done.
| |
175 __ divsd(result_, result_); | |
176 } | |
174 | 177 |
175 private: | 178 private: |
176 XMMRegister const result_; | 179 XMMRegister const result_; |
177 }; | 180 }; |
178 | 181 |
179 | 182 |
180 class OutOfLineTruncateDoubleToI final : public OutOfLineCode { | 183 class OutOfLineTruncateDoubleToI final : public OutOfLineCode { |
181 public: | 184 public: |
182 OutOfLineTruncateDoubleToI(CodeGenerator* gen, Register result, | 185 OutOfLineTruncateDoubleToI(CodeGenerator* gen, Register result, |
183 XMMRegister input, | 186 XMMRegister input, |
(...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2575 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2578 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2576 __ Nop(padding_size); | 2579 __ Nop(padding_size); |
2577 } | 2580 } |
2578 } | 2581 } |
2579 | 2582 |
2580 #undef __ | 2583 #undef __ |
2581 | 2584 |
2582 } // namespace compiler | 2585 } // namespace compiler |
2583 } // namespace internal | 2586 } // namespace internal |
2584 } // namespace v8 | 2587 } // namespace v8 |
OLD | NEW |