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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.cc

Issue 1306833002: X87: [turbofan] Support unboxed float and double stack parameters and add tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/compiler/x87/code-generator-x87.cc ('k') | no next file » | 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 InstructionOperand value = g.CanBeImmediate(input) 846 InstructionOperand value = g.CanBeImmediate(input)
847 ? g.UseImmediate(input) 847 ? g.UseImmediate(input)
848 : g.UseRegister(input); 848 : g.UseRegister(input);
849 Emit(kX87Poke | MiscField::encode(slot), g.NoOutput(), value); 849 Emit(kX87Poke | MiscField::encode(slot), g.NoOutput(), value);
850 } 850 }
851 } 851 }
852 } else { 852 } else {
853 // Push any stack arguments. 853 // Push any stack arguments.
854 for (Node* input : base::Reversed(buffer.pushed_nodes)) { 854 for (Node* input : base::Reversed(buffer.pushed_nodes)) {
855 // TODO(titzer): handle pushing double parameters. 855 // TODO(titzer): handle pushing double parameters.
856 if (input == nullptr) continue;
856 InstructionOperand value = 857 InstructionOperand value =
857 g.CanBeImmediate(input) 858 g.CanBeImmediate(input)
858 ? g.UseImmediate(input) 859 ? g.UseImmediate(input)
859 : IsSupported(ATOM) ? g.UseRegister(input) : g.Use(input); 860 : IsSupported(ATOM) ? g.UseRegister(input) : g.Use(input);
860 Emit(kX87Push, g.NoOutput(), value); 861 Emit(kX87Push, g.NoOutput(), value);
861 } 862 }
862 } 863 }
863 864
864 // Pass label of exception handler block. 865 // Pass label of exception handler block.
865 CallDescriptor::Flags flags = descriptor->flags(); 866 CallDescriptor::Flags flags = descriptor->flags();
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 MachineOperatorBuilder::kFloat32Min | 1348 MachineOperatorBuilder::kFloat32Min |
1348 MachineOperatorBuilder::kFloat64Max | 1349 MachineOperatorBuilder::kFloat64Max |
1349 MachineOperatorBuilder::kFloat64Min | 1350 MachineOperatorBuilder::kFloat64Min |
1350 MachineOperatorBuilder::kWord32ShiftIsSafe; 1351 MachineOperatorBuilder::kWord32ShiftIsSafe;
1351 return flags; 1352 return flags;
1352 } 1353 }
1353 1354
1354 } // namespace compiler 1355 } // namespace compiler
1355 } // namespace internal 1356 } // namespace internal
1356 } // namespace v8 1357 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x87/code-generator-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698