| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/code_generator.h" | 5 #include "vm/code_generator.h" |
| 6 | 6 |
| 7 #include "vm/assembler_macros.h" | 7 #include "vm/assembler_macros.h" |
| 8 #include "vm/ast.h" | 8 #include "vm/ast.h" |
| 9 #include "vm/bigint_operations.h" |
| 9 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| 10 #include "vm/compiler.h" | 11 #include "vm/compiler.h" |
| 11 #include "vm/dart_api_impl.h" | 12 #include "vm/dart_api_impl.h" |
| 12 #include "vm/dart_entry.h" | 13 #include "vm/dart_entry.h" |
| 13 #include "vm/debugger.h" | 14 #include "vm/debugger.h" |
| 14 #include "vm/deopt_instructions.h" | 15 #include "vm/deopt_instructions.h" |
| 15 #include "vm/exceptions.h" | 16 #include "vm/exceptions.h" |
| 16 #include "vm/intermediate_language.h" | 17 #include "vm/intermediate_language.h" |
| 17 #include "vm/object_store.h" | 18 #include "vm/object_store.h" |
| 18 #include "vm/message.h" | 19 #include "vm/message.h" |
| (...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1901 const intptr_t token_pos = code.GetTokenIndexOfPC(top_frame->pc()); | 1902 const intptr_t token_pos = code.GetTokenIndexOfPC(top_frame->pc()); |
| 1902 intptr_t line, column; | 1903 intptr_t line, column; |
| 1903 script.GetTokenLocation(token_pos, &line, &column); | 1904 script.GetTokenLocation(token_pos, &line, &column); |
| 1904 String& line_string = String::Handle(script.GetLine(line)); | 1905 String& line_string = String::Handle(script.GetLine(line)); |
| 1905 OS::Print(" Function: %s\n", top_function.ToFullyQualifiedCString()); | 1906 OS::Print(" Function: %s\n", top_function.ToFullyQualifiedCString()); |
| 1906 OS::Print(" Line %"Pd": '%s'\n", line, line_string.ToCString()); | 1907 OS::Print(" Line %"Pd": '%s'\n", line, line_string.ToCString()); |
| 1907 } | 1908 } |
| 1908 } | 1909 } |
| 1909 | 1910 |
| 1910 | 1911 |
| 1912 DEFINE_LEAF_RUNTIME_ENTRY(intptr_t, |
| 1913 BigintCompare, |
| 1914 RawBigint* left, |
| 1915 RawBigint* right) { |
| 1916 Isolate* isolate = Isolate::Current(); |
| 1917 StackZone zone(isolate); |
| 1918 HANDLESCOPE(isolate); |
| 1919 const Bigint& big_left = Bigint::Handle(left); |
| 1920 const Bigint& big_right = Bigint::Handle(right); |
| 1921 return BigintOperations::Compare(big_left, big_right); |
| 1922 } |
| 1923 END_LEAF_RUNTIME_ENTRY |
| 1924 |
| 1911 } // namespace dart | 1925 } // namespace dart |
| OLD | NEW |