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 using namespace v8::internal; | 41 using namespace v8::internal; |
42 | 42 |
43 | 43 |
44 // Define these function prototypes to match JSEntryFunction in execution.cc. | 44 // Define these function prototypes to match JSEntryFunction in execution.cc. |
45 typedef Object* (*F1)(int x, int p1, int p2, int p3, int p4); | 45 typedef Object* (*F1)(int x, int p1, int p2, int p3, int p4); |
46 typedef Object* (*F2)(int x, int y, int p2, int p3, int p4); | 46 typedef Object* (*F2)(int x, int y, int p2, int p3, int p4); |
47 typedef Object* (*F3)(void* p, int p1, int p2, int p3, int p4); | 47 typedef Object* (*F3)(void* p, int p1, int p2, int p3, int p4); |
48 typedef Object* (*F4)(int64_t x, int64_t y, int64_t p2, int64_t p3, int64_t p4); | 48 typedef Object* (*F4)(int64_t x, int64_t y, int64_t p2, int64_t p3, int64_t 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 5763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5825 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); | 5823 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
5826 F2 f = FUNCTION_CAST<F2>(code->entry()); | 5824 F2 f = FUNCTION_CAST<F2>(code->entry()); |
5827 | 5825 |
5828 int64_t res = reinterpret_cast<int64_t>( | 5826 int64_t res = reinterpret_cast<int64_t>( |
5829 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); | 5827 CALL_GENERATED_CODE(isolate, f, 42, 42, 0, 0, 0)); |
5830 CHECK_EQ(res, 0); | 5828 CHECK_EQ(res, 0); |
5831 } | 5829 } |
5832 | 5830 |
5833 | 5831 |
5834 #undef __ | 5832 #undef __ |
OLD | NEW |