| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 | 41 |
| 42 using namespace v8::internal; | 42 using namespace v8::internal; |
| 43 | 43 |
| 44 | 44 |
| 45 // Define these function prototypes to match JSEntryFunction in execution.cc. | 45 // Define these function prototypes to match JSEntryFunction in execution.cc. |
| 46 typedef Object* (*F1)(int x, int p1, int p2, int p3, int p4); | 46 typedef Object* (*F1)(int x, int p1, int p2, int p3, int p4); |
| 47 typedef Object* (*F2)(int x, int y, int p2, int p3, int p4); | 47 typedef Object* (*F2)(int x, int y, int p2, int p3, int p4); |
| 48 typedef Object* (*F3)(void* p, int p1, int p2, int p3, int p4); | 48 typedef Object* (*F3)(void* p, int p1, int p2, int p3, int p4); |
| 49 | 49 |
| 50 // clang-format off | |
| 51 | |
| 52 | 50 |
| 53 #define __ assm. | 51 #define __ assm. |
| 54 | 52 |
| 55 TEST(MIPS0) { | 53 TEST(MIPS0) { |
| 56 CcTest::InitializeVM(); | 54 CcTest::InitializeVM(); |
| 57 Isolate* isolate = CcTest::i_isolate(); | 55 Isolate* isolate = CcTest::i_isolate(); |
| 58 HandleScope scope(isolate); | 56 HandleScope scope(isolate); |
| 59 | 57 |
| 60 MacroAssembler assm(isolate, NULL, 0, v8::internal::CodeObjectRequired::kYes); | 58 MacroAssembler assm(isolate, NULL, 0, v8::internal::CodeObjectRequired::kYes); |
| 61 | 59 |
| (...skipping 5317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5379 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); | 5377 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
| 5380 F2 f = FUNCTION_CAST<F2>(code->entry()); | 5378 F2 f = FUNCTION_CAST<F2>(code->entry()); |
| 5381 | 5379 |
| 5382 int32_t res = reinterpret_cast<int32_t>( | 5380 int32_t res = reinterpret_cast<int32_t>( |
| 5383 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); | 5381 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); |
| 5384 CHECK_EQ(res, 0); | 5382 CHECK_EQ(res, 0); |
| 5385 } | 5383 } |
| 5386 | 5384 |
| 5387 | 5385 |
| 5388 #undef __ | 5386 #undef __ |
| OLD | NEW |