| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/codegen.h" | 5 #include "src/codegen.h" |
| 6 | 6 |
| 7 #if defined(V8_OS_AIX) | 7 #if defined(V8_OS_AIX) |
| 8 #include <fenv.h> // NOLINT(build/c++11) | 8 #include <fenv.h> // NOLINT(build/c++11) |
| 9 #endif | 9 #endif |
| 10 #include "src/ast/prettyprinter.h" |
| 10 #include "src/bootstrapper.h" | 11 #include "src/bootstrapper.h" |
| 11 #include "src/compiler.h" | 12 #include "src/compiler.h" |
| 12 #include "src/debug/debug.h" | 13 #include "src/debug/debug.h" |
| 13 #include "src/parser.h" | 14 #include "src/parsing/parser.h" |
| 14 #include "src/prettyprinter.h" | |
| 15 #include "src/profiler/cpu-profiler.h" | 15 #include "src/profiler/cpu-profiler.h" |
| 16 #include "src/rewriter.h" | |
| 17 #include "src/runtime/runtime.h" | 16 #include "src/runtime/runtime.h" |
| 18 | 17 |
| 19 namespace v8 { | 18 namespace v8 { |
| 20 namespace internal { | 19 namespace internal { |
| 21 | 20 |
| 22 | 21 |
| 23 #if defined(V8_OS_WIN) | 22 #if defined(V8_OS_WIN) |
| 24 double modulo(double x, double y) { | 23 double modulo(double x, double y) { |
| 25 // Workaround MS fmod bugs. ECMA-262 says: | 24 // Workaround MS fmod bugs. ECMA-262 says: |
| 26 // dividend is finite and divisor is an infinity => result equals dividend | 25 // dividend is finite and divisor is an infinity => result equals dividend |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 os << "source_position = " << literal->start_position() << "\n"; | 204 os << "source_position = " << literal->start_position() << "\n"; |
| 206 } | 205 } |
| 207 code->Disassemble(debug_name.get(), os); | 206 code->Disassemble(debug_name.get(), os); |
| 208 os << "--- End code ---\n"; | 207 os << "--- End code ---\n"; |
| 209 } | 208 } |
| 210 #endif // ENABLE_DISASSEMBLER | 209 #endif // ENABLE_DISASSEMBLER |
| 211 } | 210 } |
| 212 | 211 |
| 213 } // namespace internal | 212 } // namespace internal |
| 214 } // namespace v8 | 213 } // namespace v8 |
| OLD | NEW |