Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/x87/deoptimizer-x87.cc

Issue 2652303002: [deoptimizer] Preserve double bit patterns correctly. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | test/mjsunit/regress/regress-crbug-684208.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen/full-codegen.h" 9 #include "src/full-codegen/full-codegen.h"
10 #include "src/register-configuration.h" 10 #include "src/register-configuration.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 intptr_t handler = 174 intptr_t handler =
175 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); 175 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler());
176 int params = descriptor->GetHandlerParameterCount(); 176 int params = descriptor->GetHandlerParameterCount();
177 output_frame->SetRegister(eax.code(), params); 177 output_frame->SetRegister(eax.code(), params);
178 output_frame->SetRegister(ebx.code(), handler); 178 output_frame->SetRegister(ebx.code(), handler);
179 } 179 }
180 180
181 181
182 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 182 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
183 for (int i = 0; i < X87Register::kMaxNumRegisters; ++i) { 183 for (int i = 0; i < X87Register::kMaxNumRegisters; ++i) {
184 double double_value = input_->GetDoubleRegister(i); 184 Float64 double_value = input_->GetDoubleRegister(i);
185 output_frame->SetDoubleRegister(i, double_value); 185 output_frame->SetDoubleRegister(i, double_value);
186 } 186 }
187 } 187 }
188 188
189 #define __ masm()-> 189 #define __ masm()->
190 190
191 void Deoptimizer::TableEntryGenerator::Generate() { 191 void Deoptimizer::TableEntryGenerator::Generate() {
192 GeneratePrologue(); 192 GeneratePrologue();
193 193
194 // Save all general purpose registers before messing with them. 194 // Save all general purpose registers before messing with them.
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } 422 }
423 423
424 424
425 #undef __ 425 #undef __
426 426
427 427
428 } // namespace internal 428 } // namespace internal
429 } // namespace v8 429 } // namespace v8
430 430
431 #endif // V8_TARGET_ARCH_X87 431 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | test/mjsunit/regress/regress-crbug-684208.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698