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

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

Issue 6788007: Fix multi-isolate build: (Closed)
Patch Set: Created 9 years, 8 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
« no previous file with comments | « src/stub-cache.h ('k') | 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 CHECK(11.99 < res && res < 12.001); 338 CHECK(11.99 < res && res < 12.001);
339 } 339 }
340 340
341 341
342 typedef int (*F7)(double x, double y); 342 typedef int (*F7)(double x, double y);
343 343
344 TEST(AssemblerIa329) { 344 TEST(AssemblerIa329) {
345 InitializeVM(); 345 InitializeVM();
346 v8::HandleScope scope; 346 v8::HandleScope scope;
347 v8::internal::byte buffer[256]; 347 v8::internal::byte buffer[256];
348 MacroAssembler assm(buffer, sizeof buffer); 348 MacroAssembler assm(Isolate::Current(), buffer, sizeof buffer);
349 enum { kEqual = 0, kGreater = 1, kLess = 2, kNaN = 3, kUndefined = 4 }; 349 enum { kEqual = 0, kGreater = 1, kLess = 2, kNaN = 3, kUndefined = 4 };
350 Label equal_l, less_l, greater_l, nan_l; 350 Label equal_l, less_l, greater_l, nan_l;
351 __ fld_d(Operand(esp, 3 * kPointerSize)); 351 __ fld_d(Operand(esp, 3 * kPointerSize));
352 __ fld_d(Operand(esp, 1 * kPointerSize)); 352 __ fld_d(Operand(esp, 1 * kPointerSize));
353 __ FCmp(); 353 __ FCmp();
354 __ j(parity_even, &nan_l, taken); 354 __ j(parity_even, &nan_l, taken);
355 __ j(equal, &equal_l, taken); 355 __ j(equal, &equal_l, taken);
356 __ j(below, &less_l, taken); 356 __ j(below, &less_l, taken);
357 __ j(above, &greater_l, taken); 357 __ j(above, &greater_l, taken);
358 358
(...skipping 29 matching lines...) Expand all
388 #endif 388 #endif
389 389
390 F7 f = FUNCTION_CAST<F7>(Code::cast(code)->entry()); 390 F7 f = FUNCTION_CAST<F7>(Code::cast(code)->entry());
391 CHECK_EQ(kLess, f(1.1, 2.2)); 391 CHECK_EQ(kLess, f(1.1, 2.2));
392 CHECK_EQ(kEqual, f(2.2, 2.2)); 392 CHECK_EQ(kEqual, f(2.2, 2.2));
393 CHECK_EQ(kGreater, f(3.3, 2.2)); 393 CHECK_EQ(kGreater, f(3.3, 2.2));
394 CHECK_EQ(kNaN, f(OS::nan_value(), 1.1)); 394 CHECK_EQ(kNaN, f(OS::nan_value(), 1.1));
395 } 395 }
396 396
397 #undef __ 397 #undef __
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698