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

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

Issue 2420004: - Add missing Heap:: => HEAP-> conversion to ARM test (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 10 years, 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 __ bfc(r0, 1, 3); // 0b11..111111110001 = -15 296 __ bfc(r0, 1, 3); // 0b11..111111110001 = -15
297 __ mov(r1, Operand(7)); 297 __ mov(r1, Operand(7));
298 __ bfi(r0, r1, 3, 3); // 0b11..111111111001 = -7 298 __ bfi(r0, r1, 3, 3); // 0b11..111111111001 = -7
299 __ mov(pc, Operand(lr)); 299 __ mov(pc, Operand(lr));
300 300
301 CodeDesc desc; 301 CodeDesc desc;
302 assm.GetCode(&desc); 302 assm.GetCode(&desc);
303 Object* code = Heap::CreateCode(desc, 303 Object* code = Heap::CreateCode(desc,
304 NULL, 304 NULL,
305 Code::ComputeFlags(Code::STUB), 305 Code::ComputeFlags(Code::STUB),
306 Handle<Object>(Heap::undefined_value())); 306 Handle<Object>(HEAP->undefined_value()));
307 CHECK(code->IsCode()); 307 CHECK(code->IsCode());
308 #ifdef DEBUG 308 #ifdef DEBUG
309 Code::cast(code)->Print(); 309 Code::cast(code)->Print();
310 #endif 310 #endif
311 F1 f = FUNCTION_CAST<F1>(Code::cast(code)->entry()); 311 F1 f = FUNCTION_CAST<F1>(Code::cast(code)->entry());
312 int res = reinterpret_cast<int>( 312 int res = reinterpret_cast<int>(
313 CALL_GENERATED_CODE(f, 0xAAAAAAAA, 0, 0, 0, 0)); 313 CALL_GENERATED_CODE(f, 0xAAAAAAAA, 0, 0, 0, 0));
314 ::printf("f() = %d\n", res); 314 ::printf("f() = %d\n", res);
315 CHECK_EQ(-7, res); 315 CHECK_EQ(-7, res);
316 } 316 }
317 } 317 }
318 318
319 #undef __ 319 #undef __
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698