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 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 RawBigint* right) { | 1938 RawBigint* right) { |
1939 Isolate* isolate = Isolate::Current(); | 1939 Isolate* isolate = Isolate::Current(); |
1940 StackZone zone(isolate); | 1940 StackZone zone(isolate); |
1941 HANDLESCOPE(isolate); | 1941 HANDLESCOPE(isolate); |
1942 const Bigint& big_left = Bigint::Handle(left); | 1942 const Bigint& big_left = Bigint::Handle(left); |
1943 const Bigint& big_right = Bigint::Handle(right); | 1943 const Bigint& big_right = Bigint::Handle(right); |
1944 return BigintOperations::Compare(big_left, big_right); | 1944 return BigintOperations::Compare(big_left, big_right); |
1945 } | 1945 } |
1946 END_LEAF_RUNTIME_ENTRY | 1946 END_LEAF_RUNTIME_ENTRY |
1947 | 1947 |
| 1948 |
| 1949 DEFINE_LEAF_RUNTIME_ENTRY(void, |
| 1950 HeapTraceStore, |
| 1951 RawObject* object, |
| 1952 uword field_addr, |
| 1953 RawObject* value) { |
| 1954 if (!(object->IsHeapObject() && value->IsHeapObject())) { |
| 1955 return; |
| 1956 } |
| 1957 HeapTrace* heap_trace = Isolate::Current()->heap()->trace(); |
| 1958 heap_trace->TraceStoreIntoObject(RawObject::ToAddr(object), |
| 1959 field_addr, |
| 1960 RawObject::ToAddr(value)); |
| 1961 } |
| 1962 END_LEAF_RUNTIME_ENTRY |
| 1963 |
1948 } // namespace dart | 1964 } // namespace dart |
OLD | NEW |