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

Side by Side Diff: test/cctest/test-assembler-arm64.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution 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 // * Redistributions of source code must retain the above copyright 6 // * Redistributions 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 // * Redistributions in binary form must reproduce the above 8 // * Redistributions 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 184
185 #define START_AFTER_RESET() \ 185 #define START_AFTER_RESET() \
186 __ SetStackPointer(csp); \ 186 __ SetStackPointer(csp); \
187 __ PushCalleeSavedRegisters(); 187 __ PushCalleeSavedRegisters();
188 188
189 #define START() \ 189 #define START() \
190 RESET(); \ 190 RESET(); \
191 START_AFTER_RESET(); 191 START_AFTER_RESET();
192 192
193 #define RUN() \ 193 #define RUN() \
194 CPU::FlushICache(buf, masm.SizeOfGeneratedCode()); \ 194 CpuFeatures::FlushICache(buf, masm.SizeOfGeneratedCode()); \
195 { \ 195 { \
196 void (*test_function)(void); \ 196 void (*test_function)(void); \
197 memcpy(&test_function, &buf, sizeof(buf)); \ 197 memcpy(&test_function, &buf, sizeof(buf)); \
198 test_function(); \ 198 test_function(); \
199 } 199 }
200 200
201 #define END() \ 201 #define END() \
202 core.Dump(&masm); \ 202 core.Dump(&masm); \
203 __ PopCalleeSavedRegisters(); \ 203 __ PopCalleeSavedRegisters(); \
204 __ Ret(); \ 204 __ Ret(); \
205 __ GetCode(NULL); 205 __ GetCode(NULL);
206 206
207 #define TEARDOWN() \ 207 #define TEARDOWN() \
208 delete[] buf; 208 delete[] buf;
(...skipping 10771 matching lines...) Expand 10 before | Expand all | Expand 10 after
10980 if (RelocInfo::IsVeneerPool(info->rmode())) { 10980 if (RelocInfo::IsVeneerPool(info->rmode())) {
10981 ASSERT(info->data() == veneer_pool_size); 10981 ASSERT(info->data() == veneer_pool_size);
10982 ++pool_count; 10982 ++pool_count;
10983 } 10983 }
10984 } 10984 }
10985 10985
10986 ASSERT(pool_count == 2); 10986 ASSERT(pool_count == 2);
10987 10987
10988 TEARDOWN(); 10988 TEARDOWN();
10989 } 10989 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698