Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: runtime/vm/code_generator.cc

Issue 11428067: Merge the Merlin heap tracing to top-of-trunk. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698