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

Side by Side Diff: src/ppc/deoptimizer-ppc.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/mips64/deoptimizer-mips64.cc ('k') | src/s390/deoptimizer-s390.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/codegen.h" 5 #include "src/codegen.h"
6 #include "src/deoptimizer.h" 6 #include "src/deoptimizer.h"
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/register-configuration.h" 8 #include "src/register-configuration.h"
9 #include "src/safepoint-table.h" 9 #include "src/safepoint-table.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); 94 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_);
95 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); 95 intptr_t handler = reinterpret_cast<intptr_t>(xref.address());
96 int params = descriptor->GetHandlerParameterCount(); 96 int params = descriptor->GetHandlerParameterCount();
97 output_frame->SetRegister(r3.code(), params); 97 output_frame->SetRegister(r3.code(), params);
98 output_frame->SetRegister(r4.code(), handler); 98 output_frame->SetRegister(r4.code(), handler);
99 } 99 }
100 100
101 101
102 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 102 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
103 for (int i = 0; i < DoubleRegister::kNumRegisters; ++i) { 103 for (int i = 0; i < DoubleRegister::kNumRegisters; ++i) {
104 double double_value = input_->GetDoubleRegister(i); 104 Float64 double_value = input_->GetDoubleRegister(i);
105 output_frame->SetDoubleRegister(i, double_value); 105 output_frame->SetDoubleRegister(i, double_value);
106 } 106 }
107 } 107 }
108 108
109 #define __ masm()-> 109 #define __ masm()->
110 110
111 // This code tries to be close to ia32 code so that any changes can be 111 // This code tries to be close to ia32 code so that any changes can be
112 // easily ported. 112 // easily ported.
113 void Deoptimizer::TableEntryGenerator::Generate() { 113 void Deoptimizer::TableEntryGenerator::Generate() {
114 GeneratePrologue(); 114 GeneratePrologue();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 336 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
337 DCHECK(FLAG_enable_embedded_constant_pool); 337 DCHECK(FLAG_enable_embedded_constant_pool);
338 SetFrameSlot(offset, value); 338 SetFrameSlot(offset, value);
339 } 339 }
340 340
341 341
342 #undef __ 342 #undef __
343 } // namespace internal 343 } // namespace internal
344 } // namespace v8 344 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/deoptimizer-mips64.cc ('k') | src/s390/deoptimizer-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698