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

Side by Side Diff: test/cctest/test-code-stubs-mips64.cc

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 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 | « test/cctest/compiler/test-run-native-calls.cc ('k') | test/cctest/test-code-stubs-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Rrdistribution and use in source and binary forms, with or without 2 // Rrdistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Rrdistributions of source code must retain the above copyright 6 // * Rrdistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Rrdistributions in binary form must reproduce the above 8 // * Rrdistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 __ Move(f12, a0, a1); 73 __ Move(f12, a0, a1);
74 } 74 }
75 // Push the double argument. 75 // Push the double argument.
76 __ Dsubu(sp, sp, Operand(kDoubleSize)); 76 __ Dsubu(sp, sp, Operand(kDoubleSize));
77 __ sdc1(f12, MemOperand(sp)); 77 __ sdc1(f12, MemOperand(sp));
78 __ Move(source_reg, sp); 78 __ Move(source_reg, sp);
79 79
80 // Save registers make sure they don't get clobbered. 80 // Save registers make sure they don't get clobbered.
81 int source_reg_offset = kDoubleSize; 81 int source_reg_offset = kDoubleSize;
82 int reg_num = 2; 82 int reg_num = 2;
83 const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); 83 const RegisterConfiguration* config =
84 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
84 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { 85 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) {
85 Register reg = Register::from_code(reg_num); 86 Register reg = Register::from_code(reg_num);
86 if (!reg.is(destination_reg)) { 87 if (!reg.is(destination_reg)) {
87 __ push(reg); 88 __ push(reg);
88 source_reg_offset += kPointerSize; 89 source_reg_offset += kPointerSize;
89 } 90 }
90 } 91 }
91 92
92 // Re-push the double argument. 93 // Re-push the double argument.
93 __ Dsubu(sp, sp, Operand(kDoubleSize)); 94 __ Dsubu(sp, sp, Operand(kDoubleSize));
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 false)); 191 false));
191 RunAllTruncationTests( 192 RunAllTruncationTests(
192 RunGeneratedCodeCallWrapper, 193 RunGeneratedCodeCallWrapper,
193 MakeConvertDToIFuncTrampoline(isolate, 194 MakeConvertDToIFuncTrampoline(isolate,
194 source_registers[s], 195 source_registers[s],
195 dest_registers[d], 196 dest_registers[d],
196 true)); 197 true));
197 } 198 }
198 } 199 }
199 } 200 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-native-calls.cc ('k') | test/cctest/test-code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698