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

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

Issue 91503002: Mark deprecated APIs with relatively little use as deprecated (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 CompileRun( 621 CompileRun(
622 "function foo(vec) {" 622 "function foo(vec) {"
623 " return do_sse2(vec);" 623 " return do_sse2(vec);"
624 "}"); 624 "}");
625 625
626 v8::Local<v8::Object> global_object = env->Global(); 626 v8::Local<v8::Object> global_object = env->Global();
627 v8::Local<v8::Function> foo = 627 v8::Local<v8::Function> foo =
628 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); 628 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo")));
629 629
630 int32_t vec[ELEMENT_COUNT] = { -1, 1, 1, 1 }; 630 int32_t vec[ELEMENT_COUNT] = { -1, 1, 1, 1 };
631 v8::Local<v8::Array> v8_vec = v8::Array::New(ELEMENT_COUNT); 631 v8::Local<v8::Array> v8_vec = v8::Array::New(isolate, ELEMENT_COUNT);
632 for (int i = 0; i < ELEMENT_COUNT; i++) { 632 for (int i = 0; i < ELEMENT_COUNT; i++) {
633 v8_vec->Set(i, v8_num(vec[i])); 633 v8_vec->Set(i, v8_num(vec[i]));
634 } 634 }
635 635
636 v8::Local<v8::Value> args[] = { v8_vec }; 636 v8::Local<v8::Value> args[] = { v8_vec };
637 v8::Local<v8::Value> result = foo->Call(global_object, 1, args); 637 v8::Local<v8::Value> result = foo->Call(global_object, 1, args);
638 638
639 // The mask should be 0b1000. 639 // The mask should be 0b1000.
640 CHECK_EQ(8, result->Int32Value()); 640 CHECK_EQ(8, result->Int32Value());
641 } 641 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 Handle<Code>())->ToObjectChecked()); 704 Handle<Code>())->ToObjectChecked());
705 CHECK(code->IsCode()); 705 CHECK(code->IsCode());
706 #ifdef OBJECT_PRINT 706 #ifdef OBJECT_PRINT
707 Code::cast(code)->Print(); 707 Code::cast(code)->Print();
708 #endif 708 #endif
709 709
710 F6 f = FUNCTION_CAST<F6>(Code::cast(code)->entry()); 710 F6 f = FUNCTION_CAST<F6>(Code::cast(code)->entry());
711 CHECK_EQ(2, f(1.0, 2.0)); 711 CHECK_EQ(2, f(1.0, 2.0));
712 } 712 }
713 #undef __ 713 #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