OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2041 TEST(movz_movn) { | 2041 TEST(movz_movn) { |
2042 if (IsMipsArchVariant(kMips32r2)) { | 2042 if (IsMipsArchVariant(kMips32r2)) { |
2043 const int kTableLength = 4; | 2043 const int kTableLength = 4; |
2044 CcTest::InitializeVM(); | 2044 CcTest::InitializeVM(); |
2045 Isolate* isolate = CcTest::i_isolate(); | 2045 Isolate* isolate = CcTest::i_isolate(); |
2046 HandleScope scope(isolate); | 2046 HandleScope scope(isolate); |
2047 MacroAssembler assm(isolate, NULL, 0, | 2047 MacroAssembler assm(isolate, NULL, 0, |
2048 v8::internal::CodeObjectRequired::kYes); | 2048 v8::internal::CodeObjectRequired::kYes); |
2049 | 2049 |
2050 typedef struct test_float { | 2050 typedef struct test_float { |
2051 int64_t rt; | 2051 int32_t rt; |
2052 double a; | 2052 double a; |
2053 double b; | 2053 double b; |
2054 double bold; | 2054 double bold; |
2055 double b1; | 2055 double b1; |
2056 double bold1; | 2056 double bold1; |
2057 float c; | 2057 float c; |
2058 float d; | 2058 float d; |
2059 float dold; | 2059 float dold; |
2060 float d1; | 2060 float d1; |
2061 float dold1; | 2061 float dold1; |
(...skipping 3316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5378 Handle<Code> code = isolate->factory()->NewCode( | 5378 Handle<Code> code = isolate->factory()->NewCode( |
5379 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); | 5379 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
5380 F2 f = FUNCTION_CAST<F2>(code->entry()); | 5380 F2 f = FUNCTION_CAST<F2>(code->entry()); |
5381 | 5381 |
5382 int32_t res = reinterpret_cast<int32_t>( | 5382 int32_t res = reinterpret_cast<int32_t>( |
5383 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); | 5383 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); |
5384 CHECK_EQ(res, 0); | 5384 CHECK_EQ(res, 0); |
5385 } | 5385 } |
5386 | 5386 |
5387 #undef __ | 5387 #undef __ |
OLD | NEW |