| 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 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "src/ast/prettyprinter.h" | 13 #include "src/ast/prettyprinter.h" |
| 14 #include "src/bootstrapper.h" | 14 #include "src/bootstrapper.h" |
| 15 #include "src/compilation-info.h" | 15 #include "src/compilation-info.h" |
| 16 #include "src/debug/debug.h" | 16 #include "src/debug/debug.h" |
| 17 #include "src/eh-frame.h" | 17 #include "src/eh-frame.h" |
| 18 #include "src/parsing/parser.h" | |
| 19 #include "src/runtime/runtime.h" | 18 #include "src/runtime/runtime.h" |
| 20 | 19 |
| 21 namespace v8 { | 20 namespace v8 { |
| 22 namespace internal { | 21 namespace internal { |
| 23 | 22 |
| 24 | 23 |
| 25 #if defined(V8_OS_WIN) | 24 #if defined(V8_OS_WIN) |
| 26 double modulo(double x, double y) { | 25 double modulo(double x, double y) { |
| 27 // Workaround MS fmod bugs. ECMA-262 says: | 26 // Workaround MS fmod bugs. ECMA-262 says: |
| 28 // dividend is finite and divisor is an infinity => result equals dividend | 27 // dividend is finite and divisor is an infinity => result equals dividend |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 os << "source_position = " << shared->start_position() << "\n"; | 190 os << "source_position = " << shared->start_position() << "\n"; |
| 192 } | 191 } |
| 193 code->Disassemble(debug_name.get(), os); | 192 code->Disassemble(debug_name.get(), os); |
| 194 os << "--- End code ---\n"; | 193 os << "--- End code ---\n"; |
| 195 } | 194 } |
| 196 #endif // ENABLE_DISASSEMBLER | 195 #endif // ENABLE_DISASSEMBLER |
| 197 } | 196 } |
| 198 | 197 |
| 199 } // namespace internal | 198 } // namespace internal |
| 200 } // namespace v8 | 199 } // namespace v8 |
| OLD | NEW |