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

Side by Side Diff: test/cctest/test-disasm-mips.cc

Issue 23534067: bulk replace Isolate::Current in tests (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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
« no previous file with comments | « test/cctest/test-disasm-arm.cc ('k') | test/cctest/test-disasm-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 return true; 59 return true;
60 } 60 }
61 61
62 62
63 // Set up V8 to a state where we can at least run the assembler and 63 // Set up V8 to a state where we can at least run the assembler and
64 // disassembler. Declare the variables and allocate the data structures used 64 // disassembler. Declare the variables and allocate the data structures used
65 // in the rest of the macros. 65 // in the rest of the macros.
66 #define SET_UP() \ 66 #define SET_UP() \
67 CcTest::InitializeVM(); \ 67 CcTest::InitializeVM(); \
68 Isolate* isolate = Isolate::Current(); \ 68 Isolate* isolate = CcTest::i_isolate(); \
69 HandleScope scope(isolate); \ 69 HandleScope scope(isolate); \
70 byte *buffer = reinterpret_cast<byte*>(malloc(4*1024)); \ 70 byte *buffer = reinterpret_cast<byte*>(malloc(4*1024)); \
71 Assembler assm(isolate, buffer, 4*1024); \ 71 Assembler assm(isolate, buffer, 4*1024); \
72 bool failure = false; 72 bool failure = false;
73 73
74 74
75 // This macro assembles one instruction using the preallocated assembler and 75 // This macro assembles one instruction using the preallocated assembler and
76 // disassembles the generated instruction, comparing the output to the expected 76 // disassembles the generated instruction, comparing the output to the expected
77 // value. If the comparison fails an error message is printed, but the test 77 // value. If the comparison fails an error message is printed, but the test
78 // continues to run until the end. 78 // continues to run until the end.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 COMPARE(ext_(a0, a1, 31, 1), 422 COMPARE(ext_(a0, a1, 31, 1),
423 "7ca407c0 ext a0, a1, 31, 1"); 423 "7ca407c0 ext a0, a1, 31, 1");
424 COMPARE(ext_(s6, s7, 30, 2), 424 COMPARE(ext_(s6, s7, 30, 2),
425 "7ef60f80 ext s6, s7, 30, 2"); 425 "7ef60f80 ext s6, s7, 30, 2");
426 COMPARE(ext_(v0, v1, 0, 32), 426 COMPARE(ext_(v0, v1, 0, 32),
427 "7c62f800 ext v0, v1, 0, 32"); 427 "7c62f800 ext v0, v1, 0, 32");
428 } 428 }
429 429
430 VERIFY_RUN(); 430 VERIFY_RUN();
431 } 431 }
OLDNEW
« no previous file with comments | « test/cctest/test-disasm-arm.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698