OLD | NEW |
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. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 |
5 #include <cmath> | 8 #include <cmath> |
6 #include <functional> | 9 #include <functional> |
7 #include <limits> | 10 #include <limits> |
8 | 11 |
9 #include "src/base/bits.h" | 12 #include "src/base/bits.h" |
10 #include "src/base/utils/random-number-generator.h" | 13 #include "src/base/utils/random-number-generator.h" |
11 #include "src/codegen.h" | 14 #include "src/codegen.h" |
12 #include "test/cctest/cctest.h" | 15 #include "test/cctest/cctest.h" |
13 #include "test/cctest/compiler/codegen-tester.h" | 16 #include "test/cctest/compiler/codegen-tester.h" |
14 #include "test/cctest/compiler/graph-builder-tester.h" | 17 #include "test/cctest/compiler/graph-builder-tester.h" |
(...skipping 5551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5566 c->CalleeSavedRegisters(), // callee saved | 5569 c->CalleeSavedRegisters(), // callee saved |
5567 c->CalleeSavedFPRegisters(), // callee saved FP | 5570 c->CalleeSavedFPRegisters(), // callee saved FP |
5568 CallDescriptor::kNoFlags, // flags | 5571 CallDescriptor::kNoFlags, // flags |
5569 "c-call-as-code"); | 5572 "c-call-as-code"); |
5570 Node* call = r.AddNode(r.common()->Call(desc), phi); | 5573 Node* call = r.AddNode(r.common()->Call(desc), phi); |
5571 r.Return(call); | 5574 r.Return(call); |
5572 | 5575 |
5573 CHECK_EQ(33, r.Call(1)); | 5576 CHECK_EQ(33, r.Call(1)); |
5574 CHECK_EQ(44, r.Call(0)); | 5577 CHECK_EQ(44, r.Call(0)); |
5575 } | 5578 } |
OLD | NEW |