| 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/bigint_operations.h" |
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1892 RawBigint* right) { | 1892 RawBigint* right) { |
| 1893 Isolate* isolate = Isolate::Current(); | 1893 Isolate* isolate = Isolate::Current(); |
| 1894 StackZone zone(isolate); | 1894 StackZone zone(isolate); |
| 1895 HANDLESCOPE(isolate); | 1895 HANDLESCOPE(isolate); |
| 1896 const Bigint& big_left = Bigint::Handle(left); | 1896 const Bigint& big_left = Bigint::Handle(left); |
| 1897 const Bigint& big_right = Bigint::Handle(right); | 1897 const Bigint& big_right = Bigint::Handle(right); |
| 1898 return BigintOperations::Compare(big_left, big_right); | 1898 return BigintOperations::Compare(big_left, big_right); |
| 1899 } | 1899 } |
| 1900 END_LEAF_RUNTIME_ENTRY | 1900 END_LEAF_RUNTIME_ENTRY |
| 1901 | 1901 |
| 1902 |
| 1903 DEFINE_LEAF_RUNTIME_ENTRY(void, |
| 1904 HeapTraceStore, |
| 1905 RawObject* object, |
| 1906 uword field_addr, |
| 1907 RawObject* value) { |
| 1908 if (!(object->IsHeapObject() && value->IsHeapObject())) { |
| 1909 return; |
| 1910 } |
| 1911 HeapTrace* heap_trace = Isolate::Current()->heap()->trace(); |
| 1912 heap_trace->TraceStoreIntoObject(RawObject::ToAddr(object), |
| 1913 field_addr, |
| 1914 RawObject::ToAddr(value)); |
| 1915 } |
| 1916 END_LEAF_RUNTIME_ENTRY |
| 1917 |
| 1902 } // namespace dart | 1918 } // namespace dart |
| OLD | NEW |