OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the 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/assembler.h" | 12 #include "src/assembler.h" |
10 #include "src/base/bits.h" | 13 #include "src/base/bits.h" |
11 #include "src/base/utils/random-number-generator.h" | 14 #include "src/base/utils/random-number-generator.h" |
12 #include "src/codegen.h" | 15 #include "src/codegen.h" |
13 #include "src/compiler.h" | 16 #include "src/compiler.h" |
14 #include "src/compiler/linkage.h" | 17 #include "src/compiler/linkage.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 mt.Return(ret); | 110 mt.Return(ret); |
108 #ifdef ENABLE_DISASSEMBLER | 111 #ifdef ENABLE_DISASSEMBLER |
109 Handle<Code> code2 = mt.GetCode(); | 112 Handle<Code> code2 = mt.GetCode(); |
110 if (FLAG_print_code) { | 113 if (FLAG_print_code) { |
111 OFStream os(stdout); | 114 OFStream os(stdout); |
112 code2->Disassemble("three_value_call", os); | 115 code2->Disassemble("three_value_call", os); |
113 } | 116 } |
114 #endif | 117 #endif |
115 CHECK_EQ((123 + 456) + (123 - 456) + (123 * 456), mt.Call()); | 118 CHECK_EQ((123 + 456) + (123 - 456) + (123 * 456), mt.Call()); |
116 } | 119 } |
OLD | NEW |