Chromium Code Reviews| 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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1895 RawBigint* right) { | 1895 RawBigint* right) { |
| 1896 Isolate* isolate = Isolate::Current(); | 1896 Isolate* isolate = Isolate::Current(); |
| 1897 StackZone zone(isolate); | 1897 StackZone zone(isolate); |
| 1898 HANDLESCOPE(isolate); | 1898 HANDLESCOPE(isolate); |
| 1899 const Bigint& big_left = Bigint::Handle(left); | 1899 const Bigint& big_left = Bigint::Handle(left); |
| 1900 const Bigint& big_right = Bigint::Handle(right); | 1900 const Bigint& big_right = Bigint::Handle(right); |
| 1901 return BigintOperations::Compare(big_left, big_right); | 1901 return BigintOperations::Compare(big_left, big_right); |
| 1902 } | 1902 } |
| 1903 END_LEAF_RUNTIME_ENTRY | 1903 END_LEAF_RUNTIME_ENTRY |
| 1904 | 1904 |
| 1905 | |
| 1906 DEFINE_LEAF_RUNTIME_ENTRY(void, | |
| 1907 HeapTraceStore, | |
| 1908 RawObject* object, | |
| 1909 uword field_addr, | |
| 1910 RawObject* value) { | |
| 1911 if (!(object->IsHeapObject() && value->IsHeapObject())) { | |
|
siva
2012/12/05 16:06:40
I am a little confused by this check. Is it here t
cshapiro
2012/12/08 03:23:08
This check ensures that both the source and destin
| |
| 1912 return; | |
| 1913 } | |
| 1914 HeapTrace* heap_trace = Isolate::Current()->heap()->trace(); | |
| 1915 heap_trace->TraceStoreIntoObject(RawObject::ToAddr(object), | |
| 1916 field_addr, | |
| 1917 RawObject::ToAddr(value)); | |
| 1918 } | |
| 1919 END_LEAF_RUNTIME_ENTRY | |
| 1920 | |
| 1905 } // namespace dart | 1921 } // namespace dart |
| OLD | NEW |