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

Unified Diff: runtime/vm/compilation_trace.h

Issue 2924013004: core-jit: (Closed)
Patch Set: . Created 3 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tools/create_snapshot_bin.py ('k') | runtime/vm/compilation_trace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compilation_trace.h
diff --git a/runtime/vm/compilation_trace.h b/runtime/vm/compilation_trace.h
index cf7530cc74e20361ae23e15752e0ea9eade8d642..3e9e528d457d847ac5d4bb152219f524067211ea 100644
--- a/runtime/vm/compilation_trace.h
+++ b/runtime/vm/compilation_trace.h
@@ -20,7 +20,7 @@ class CompilationTraceSaver : public FunctionVisitor {
void StealBuffer(uint8_t** buffer, intptr_t* buffer_length) {
*buffer = reinterpret_cast<uint8_t*>(buf_.buffer());
- *buffer_length = buf_.length() + 1; // Include terminating NUL.
+ *buffer_length = buf_.length();
}
private:
@@ -36,7 +36,7 @@ class CompilationTraceLoader : public ValueObject {
public:
explicit CompilationTraceLoader(Thread* thread);
- RawObject* CompileTrace(char* buffer);
+ RawObject* CompileTrace(uint8_t* buffer, intptr_t buffer_length);
private:
RawObject* CompileTriple(const char* uri_cstr,
« no previous file with comments | « runtime/tools/create_snapshot_bin.py ('k') | runtime/vm/compilation_trace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698