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

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

Issue 119323006: Revert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak build." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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-assembler-ia32.cc ('k') | test/cctest/test-compiler.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 CodeDesc desc; 597 CodeDesc desc;
598 assm.GetCode(&desc); 598 assm.GetCode(&desc);
599 Code* code = Code::cast(isolate->heap()->CreateCode( 599 Code* code = Code::cast(isolate->heap()->CreateCode(
600 desc, 600 desc,
601 Code::ComputeFlags(Code::STUB), 601 Code::ComputeFlags(Code::STUB),
602 Handle<Code>())->ToObjectChecked()); 602 Handle<Code>())->ToObjectChecked());
603 CHECK(code->IsCode()); 603 CHECK(code->IsCode());
604 604
605 F0 f = FUNCTION_CAST<F0>(code->entry()); 605 F0 f = FUNCTION_CAST<F0>(code->entry());
606 int res = f(); 606 int res = f();
607 args.GetReturnValue().Set(v8::Integer::New(CcTest::isolate(), res)); 607 args.GetReturnValue().Set(v8::Integer::New(res));
608 } 608 }
609 609
610 610
611 TEST(StackAlignmentForSSE2) { 611 TEST(StackAlignmentForSSE2) {
612 CcTest::InitializeVM(); 612 CcTest::InitializeVM();
613 CHECK_EQ(0, OS::ActivationFrameAlignment() % 16); 613 CHECK_EQ(0, OS::ActivationFrameAlignment() % 16);
614 614
615 v8::Isolate* isolate = CcTest::isolate(); 615 v8::Isolate* isolate = CcTest::isolate();
616 v8::HandleScope handle_scope(isolate); 616 v8::HandleScope handle_scope(isolate);
617 v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); 617 v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 Handle<Code>())->ToObjectChecked()); 705 Handle<Code>())->ToObjectChecked());
706 CHECK(code->IsCode()); 706 CHECK(code->IsCode());
707 #ifdef OBJECT_PRINT 707 #ifdef OBJECT_PRINT
708 Code::cast(code)->Print(); 708 Code::cast(code)->Print();
709 #endif 709 #endif
710 710
711 F6 f = FUNCTION_CAST<F6>(Code::cast(code)->entry()); 711 F6 f = FUNCTION_CAST<F6>(Code::cast(code)->entry());
712 CHECK_EQ(2, f(1.0, 2.0)); 712 CHECK_EQ(2, f(1.0, 2.0));
713 } 713 }
714 #undef __ 714 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-ia32.cc ('k') | test/cctest/test-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698