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

Side by Side Diff: test/cctest/compiler/test-run-machops.cc

Issue 1424943004: Move compiler cctests into v8::internal::compiler namespace. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « test/cctest/compiler/test-run-jsops.cc ('k') | test/cctest/compiler/test-run-native-calls.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 2014 the V8 project authors. All rights reserved. Use of this 1 // Copyright 2014 the V8 project authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 // TODO(jochen): Remove this after the setting is turned on globally. 5 // TODO(jochen): Remove this after the setting is turned on globally.
6 #define V8_IMMINENT_DEPRECATION_WARNINGS 6 #define V8_IMMINENT_DEPRECATION_WARNINGS
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <functional> 9 #include <functional>
10 #include <limits> 10 #include <limits>
11 11
12 #include "src/base/bits.h" 12 #include "src/base/bits.h"
13 #include "src/base/utils/random-number-generator.h" 13 #include "src/base/utils/random-number-generator.h"
14 #include "src/codegen.h" 14 #include "src/codegen.h"
15 #include "test/cctest/cctest.h" 15 #include "test/cctest/cctest.h"
16 #include "test/cctest/compiler/codegen-tester.h" 16 #include "test/cctest/compiler/codegen-tester.h"
17 #include "test/cctest/compiler/graph-builder-tester.h" 17 #include "test/cctest/compiler/graph-builder-tester.h"
18 #include "test/cctest/compiler/value-helper.h" 18 #include "test/cctest/compiler/value-helper.h"
19 19
20 using namespace v8::base; 20 using namespace v8::base;
21 using namespace v8::internal; 21
22 using namespace v8::internal::compiler; 22 namespace v8 {
23 namespace internal {
24 namespace compiler {
23 25
24 typedef RawMachineAssembler::Label MLabel; 26 typedef RawMachineAssembler::Label MLabel;
25 27
26 28
27 TEST(RunInt32Add) { 29 TEST(RunInt32Add) {
28 RawMachineAssemblerTester<int32_t> m; 30 RawMachineAssemblerTester<int32_t> m;
29 Node* add = m.Int32Add(m.Int32Constant(0), m.Int32Constant(1)); 31 Node* add = m.Int32Add(m.Int32Constant(0), m.Int32Constant(1));
30 m.Return(add); 32 m.Return(add);
31 CHECK_EQ(1, m.Call()); 33 CHECK_EQ(1, m.Call());
32 } 34 }
(...skipping 5527 matching lines...) Expand 10 before | Expand all | Expand 10 after
5560 c->CalleeSavedRegisters(), // callee saved 5562 c->CalleeSavedRegisters(), // callee saved
5561 c->CalleeSavedFPRegisters(), // callee saved FP 5563 c->CalleeSavedFPRegisters(), // callee saved FP
5562 CallDescriptor::kNoFlags, // flags 5564 CallDescriptor::kNoFlags, // flags
5563 "c-call-as-code"); 5565 "c-call-as-code");
5564 Node* call = r.AddNode(r.common()->Call(desc), phi); 5566 Node* call = r.AddNode(r.common()->Call(desc), phi);
5565 r.Return(call); 5567 r.Return(call);
5566 5568
5567 CHECK_EQ(33, r.Call(1)); 5569 CHECK_EQ(33, r.Call(1));
5568 CHECK_EQ(44, r.Call(0)); 5570 CHECK_EQ(44, r.Call(0));
5569 } 5571 }
5572
5573 } // namespace compiler
5574 } // namespace internal
5575 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-jsops.cc ('k') | test/cctest/compiler/test-run-native-calls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698