| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 #endif | 102 #endif |
| 103 | 103 |
| 104 #define __ masm. | 104 #define __ masm. |
| 105 | 105 |
| 106 #define BUF_SIZE 8192 | 106 #define BUF_SIZE 8192 |
| 107 #define SETUP() SETUP_SIZE(BUF_SIZE) | 107 #define SETUP() SETUP_SIZE(BUF_SIZE) |
| 108 | 108 |
| 109 #define INIT_V8() \ | 109 #define INIT_V8() \ |
| 110 v8::HandleScope handle_scope; \ | |
| 111 CcTest::InitializeVM(); \ | 110 CcTest::InitializeVM(); \ |
| 112 Isolate* isolate = Isolate::Current(); \ | 111 Isolate* isolate = Isolate::Current(); \ |
| 112 HandleScope scope(isolate); \ |
| 113 ASSERT(isolate != NULL); | 113 ASSERT(isolate != NULL); |
| 114 | 114 |
| 115 #ifdef USE_SIMULATOR | 115 #ifdef USE_SIMULATOR |
| 116 | 116 |
| 117 // Run tests with the simulator. | 117 // Run tests with the simulator. |
| 118 #define SETUP_SIZE(buf_size) \ | 118 #define SETUP_SIZE(buf_size) \ |
| 119 INIT_V8(); \ | 119 INIT_V8(); \ |
| 120 byte* buf = new byte[buf_size]; \ | 120 byte* buf = new byte[buf_size]; \ |
| 121 MacroAssembler masm(isolate, buf, buf_size); \ | 121 MacroAssembler masm(isolate, buf, buf_size); \ |
| 122 Decoder decoder; \ | 122 Decoder decoder; \ |
| (...skipping 9294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9417 AbsHelperX(kXMinInt); | 9417 AbsHelperX(kXMinInt); |
| 9418 AbsHelperX(kXMaxInt); | 9418 AbsHelperX(kXMaxInt); |
| 9419 | 9419 |
| 9420 AbsHelperW(0); | 9420 AbsHelperW(0); |
| 9421 AbsHelperW(42); | 9421 AbsHelperW(42); |
| 9422 AbsHelperW(-42); | 9422 AbsHelperW(-42); |
| 9423 AbsHelperW(kWMinInt); | 9423 AbsHelperW(kWMinInt); |
| 9424 AbsHelperW(kWMaxInt); | 9424 AbsHelperW(kWMaxInt); |
| 9425 } | 9425 } |
| 9426 | 9426 |
| OLD | NEW |