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 3388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3399 t.r1 = 0x781A15C3; | 3399 t.r1 = 0x781A15C3; |
3400 t.r2 = 0x8B71FCDE; | 3400 t.r2 = 0x8B71FCDE; |
3401 Object* dummy = CALL_GENERATED_CODE(isolate, f, &t, 0, 0, 0, 0); | 3401 Object* dummy = CALL_GENERATED_CODE(isolate, f, &t, 0, 0, 0, 0); |
3402 USE(dummy); | 3402 USE(dummy); |
3403 | 3403 |
3404 CHECK_EQ(static_cast<int32_t>(0x1E58A8C3), t.r1); | 3404 CHECK_EQ(static_cast<int32_t>(0x1E58A8C3), t.r1); |
3405 CHECK_EQ(static_cast<int32_t>(0xD18E3F7B), t.r2); | 3405 CHECK_EQ(static_cast<int32_t>(0xD18E3F7B), t.r2); |
3406 } | 3406 } |
3407 } | 3407 } |
3408 | 3408 |
3409 | |
3410 TEST(class_fmt) { | 3409 TEST(class_fmt) { |
3411 if (IsMipsArchVariant(kMips32r6)) { | 3410 if (IsMipsArchVariant(kMips32r6)) { |
3412 // Test CLASS.fmt instruction. | 3411 // Test CLASS.fmt instruction. |
3413 CcTest::InitializeVM(); | 3412 CcTest::InitializeVM(); |
3414 Isolate* isolate = CcTest::i_isolate(); | 3413 Isolate* isolate = CcTest::i_isolate(); |
3415 HandleScope scope(isolate); | 3414 HandleScope scope(isolate); |
3416 | 3415 |
3417 typedef struct { | 3416 typedef struct { |
3418 double dSignalingNan; | 3417 double dSignalingNan; |
3419 double dQuietNan; | 3418 double dQuietNan; |
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5380 Handle<Code> code = isolate->factory()->NewCode( | 5379 Handle<Code> code = isolate->factory()->NewCode( |
5381 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); | 5380 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
5382 F2 f = FUNCTION_CAST<F2>(code->entry()); | 5381 F2 f = FUNCTION_CAST<F2>(code->entry()); |
5383 | 5382 |
5384 int32_t res = reinterpret_cast<int32_t>( | 5383 int32_t res = reinterpret_cast<int32_t>( |
5385 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); | 5384 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); |
5386 CHECK_EQ(res, 0); | 5385 CHECK_EQ(res, 0); |
5387 } | 5386 } |
5388 | 5387 |
5389 #undef __ | 5388 #undef __ |
OLD | NEW |