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

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

Issue 1546973003: MIPS: Remove clang-format-off from assembler tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 months 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
« no previous file with comments | « no previous file | test/cctest/test-assembler-mips64.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 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
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
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 __
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698