| OLD | NEW |
| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 __ PopCalleeSavedRegisters(); \ | 166 __ PopCalleeSavedRegisters(); \ |
| 167 __ Ret(); \ | 167 __ Ret(); \ |
| 168 __ GetCode(NULL); | 168 __ GetCode(NULL); |
| 169 | 169 |
| 170 #define TEARDOWN() \ | 170 #define TEARDOWN() \ |
| 171 delete pdis; \ | 171 delete pdis; \ |
| 172 delete[] buf; | 172 delete[] buf; |
| 173 | 173 |
| 174 #else // ifdef USE_SIMULATOR. | 174 #else // ifdef USE_SIMULATOR. |
| 175 // Run the test on real hardware or models. | 175 // Run the test on real hardware or models. |
| 176 #define SETUP_SIZE(buf_size) \ | 176 #define SETUP_SIZE(buf_size) \ |
| 177 Isolate* isolate = CcTest::i_isolate(); \ | 177 Isolate* isolate = CcTest::i_isolate(); \ |
| 178 HandleScope scope(isolate); \ | 178 HandleScope scope(isolate); \ |
| 179 CHECK(isolate != NULL); \ | 179 CHECK(isolate != NULL); \ |
| 180 size_t actual_size; \ | 180 size_t actual_size; \ |
| 181 byte* buf = static_cast<byte*>( \ | 181 byte* buf = static_cast<byte*>( \ |
| 182 v8::base::OS::Allocate(buf_size, &actual_size, true)); \ | 182 v8::base::OS::Allocate(buf_size, &actual_size, true)); \ |
| 183 MacroAssembler masm(isolate, buf, actual_size, \ | 183 MacroAssembler masm(isolate, buf, static_cast<unsigned>(actual_size), \ |
| 184 v8::internal::CodeObjectRequired::kYes); \ | 184 v8::internal::CodeObjectRequired::kYes); \ |
| 185 RegisterDump core; | 185 RegisterDump core; |
| 186 | 186 |
| 187 #define RESET() \ | 187 #define RESET() \ |
| 188 __ Reset(); \ | 188 __ Reset(); \ |
| 189 /* Reset the machine state (like simulator.ResetState()). */ \ | 189 /* Reset the machine state (like simulator.ResetState()). */ \ |
| 190 __ Msr(NZCV, xzr); \ | 190 __ Msr(NZCV, xzr); \ |
| 191 __ Msr(FPCR, xzr); | 191 __ Msr(FPCR, xzr); |
| 192 | 192 |
| 193 | 193 |
| 194 #define START_AFTER_RESET() \ | 194 #define START_AFTER_RESET() \ |
| (...skipping 11326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11521 __ Mov(x0, 1); | 11521 __ Mov(x0, 1); |
| 11522 | 11522 |
| 11523 END(); | 11523 END(); |
| 11524 | 11524 |
| 11525 RUN(); | 11525 RUN(); |
| 11526 | 11526 |
| 11527 CHECK_EQUAL_64(0x1, x0); | 11527 CHECK_EQUAL_64(0x1, x0); |
| 11528 | 11528 |
| 11529 TEARDOWN(); | 11529 TEARDOWN(); |
| 11530 } | 11530 } |
| OLD | NEW |