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

Side by Side Diff: test/cctest/test-disasm-arm.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-dictionary.cc ('k') | test/cctest/test-disasm-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 "e16dc7ff strd ip, [sp, #-127]!"); 893 "e16dc7ff strd ip, [sp, #-127]!");
894 894
895 COMPARE(pld(MemOperand(r1, 0)), 895 COMPARE(pld(MemOperand(r1, 0)),
896 "f5d1f000 pld [r1]"); 896 "f5d1f000 pld [r1]");
897 COMPARE(pld(MemOperand(r2, 128)), 897 COMPARE(pld(MemOperand(r2, 128)),
898 "f5d2f080 pld [r2, #+128]"); 898 "f5d2f080 pld [r2, #+128]");
899 } 899 }
900 900
901 VERIFY_RUN(); 901 VERIFY_RUN();
902 } 902 }
OLDNEW
« no previous file with comments | « test/cctest/test-dictionary.cc ('k') | test/cctest/test-disasm-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698