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: test/cctest/test-code-stubs-mips.cc

Issue 1365073002: Revert of Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/test-code-stubs-ia32.cc ('k') | test/cctest/test-code-stubs-mips64.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 16 matching lines...) Expand all
27 27
28 #include <stdlib.h> 28 #include <stdlib.h>
29 29
30 #include "src/v8.h" 30 #include "src/v8.h"
31 31
32 #include "src/base/platform/platform.h" 32 #include "src/base/platform/platform.h"
33 #include "src/code-stubs.h" 33 #include "src/code-stubs.h"
34 #include "src/factory.h" 34 #include "src/factory.h"
35 #include "src/macro-assembler.h" 35 #include "src/macro-assembler.h"
36 #include "src/mips/constants-mips.h" 36 #include "src/mips/constants-mips.h"
37 #include "src/register-configuration.h"
38 #include "src/simulator.h" 37 #include "src/simulator.h"
39 #include "test/cctest/cctest.h" 38 #include "test/cctest/cctest.h"
40 #include "test/cctest/test-code-stubs.h" 39 #include "test/cctest/test-code-stubs.h"
41 40
42 using namespace v8::internal; 41 using namespace v8::internal;
43 42
44 #define __ masm. 43 #define __ masm.
45 44
46 ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, 45 ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
47 Register source_reg, 46 Register source_reg,
(...skipping 25 matching lines...) Expand all
73 __ Move(f12, a0, a1); 72 __ Move(f12, a0, a1);
74 } 73 }
75 // Push the double argument. 74 // Push the double argument.
76 __ Subu(sp, sp, Operand(kDoubleSize)); 75 __ Subu(sp, sp, Operand(kDoubleSize));
77 __ sdc1(f12, MemOperand(sp)); 76 __ sdc1(f12, MemOperand(sp));
78 __ Move(source_reg, sp); 77 __ Move(source_reg, sp);
79 78
80 // Save registers make sure they don't get clobbered. 79 // Save registers make sure they don't get clobbered.
81 int source_reg_offset = kDoubleSize; 80 int source_reg_offset = kDoubleSize;
82 int reg_num = 2; 81 int reg_num = 2;
83 const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); 82 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
84 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) {
85 Register reg = Register::from_code(reg_num); 83 Register reg = Register::from_code(reg_num);
86 if (!reg.is(destination_reg)) { 84 if (!reg.is(destination_reg)) {
87 __ push(reg); 85 __ push(reg);
88 source_reg_offset += kPointerSize; 86 source_reg_offset += kPointerSize;
89 } 87 }
90 } 88 }
91 89
92 // Re-push the double argument. 90 // Re-push the double argument.
93 __ Subu(sp, sp, Operand(kDoubleSize)); 91 __ Subu(sp, sp, Operand(kDoubleSize));
94 __ sdc1(f12, MemOperand(sp)); 92 __ sdc1(f12, MemOperand(sp));
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 false)); 187 false));
190 RunAllTruncationTests( 188 RunAllTruncationTests(
191 RunGeneratedCodeCallWrapper, 189 RunGeneratedCodeCallWrapper,
192 MakeConvertDToIFuncTrampoline(isolate, 190 MakeConvertDToIFuncTrampoline(isolate,
193 source_registers[s], 191 source_registers[s],
194 dest_registers[d], 192 dest_registers[d],
195 true)); 193 true));
196 } 194 }
197 } 195 }
198 } 196 }
OLDNEW
« no previous file with comments | « test/cctest/test-code-stubs-ia32.cc ('k') | test/cctest/test-code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698