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

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

Issue 21022003: Revert new OS and CC detection and related changes since r15923. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « src/v8utils.h ('k') | test/cctest/test-assembler-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 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 Code::ComputeFlags(Code::STUB), 466 Code::ComputeFlags(Code::STUB),
467 Handle<Code>())->ToObjectChecked()); 467 Handle<Code>())->ToObjectChecked());
468 CHECK(code->IsCode()); 468 CHECK(code->IsCode());
469 469
470 F0 f = FUNCTION_CAST<F0>(code->entry()); 470 F0 f = FUNCTION_CAST<F0>(code->entry());
471 int res = f(); 471 int res = f();
472 CHECK_EQ(42, res); 472 CHECK_EQ(42, res);
473 } 473 }
474 474
475 475
476 #if V8_CC_GNU 476 #ifdef __GNUC__
477 #define ELEMENT_COUNT 4 477 #define ELEMENT_COUNT 4
478 478
479 void DoSSE2(const v8::FunctionCallbackInfo<v8::Value>& args) { 479 void DoSSE2(const v8::FunctionCallbackInfo<v8::Value>& args) {
480 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); 480 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate());
481 HandleScope scope(isolate); 481 HandleScope scope(isolate);
482 482
483 CHECK(args[0]->IsArray()); 483 CHECK(args[0]->IsArray());
484 v8::Local<v8::Array> vec = v8::Local<v8::Array>::Cast(args[0]); 484 v8::Local<v8::Array> vec = v8::Local<v8::Array>::Cast(args[0]);
485 CHECK_EQ(ELEMENT_COUNT, vec->Length()); 485 CHECK_EQ(ELEMENT_COUNT, vec->Length());
486 486
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 } 554 }
555 555
556 v8::Local<v8::Value> args[] = { v8_vec }; 556 v8::Local<v8::Value> args[] = { v8_vec };
557 v8::Local<v8::Value> result = foo->Call(global_object, 1, args); 557 v8::Local<v8::Value> result = foo->Call(global_object, 1, args);
558 558
559 // The mask should be 0b1000. 559 // The mask should be 0b1000.
560 CHECK_EQ(8, result->Int32Value()); 560 CHECK_EQ(8, result->Int32Value());
561 } 561 }
562 562
563 #undef ELEMENT_COUNT 563 #undef ELEMENT_COUNT
564 #endif // V8_CC_GNU 564 #endif // __GNUC__
565 565
566 566
567 #undef __ 567 #undef __
OLDNEW
« no previous file with comments | « src/v8utils.h ('k') | test/cctest/test-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698