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

Unified Diff: runtime/vm/object.h

Issue 2687143005: Include metadata in AOT to expand inline frames in stack traces and provide line numbers. (Closed)
Patch Set: . Created 3 years, 10 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/vm/flow_graph_compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 73360bf55d7946b0b74015281a91873203bcdc34..ae65d2956b93165f3d54e6323d5b11f1e8d90b90 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3576,6 +3576,7 @@ class Script : public Object {
void SetLocationOffset(intptr_t line_offset, intptr_t col_offset) const;
+ intptr_t GetTokenLineUsingLineStarts(TokenPosition token_pos) const;
void GetTokenLocation(TokenPosition token_pos,
intptr_t* line,
intptr_t* column,
@@ -4408,6 +4409,14 @@ class CodeSourceMap : public Object {
return UnsafeMutableNonPointer(&raw_ptr()->data()[0]);
}
+ bool Equals(const CodeSourceMap& other) const {
+ if (Length() != other.Length()) {
+ return false;
+ }
+ NoSafepointScope no_safepoint;
+ return memcmp(raw_ptr(), other.raw_ptr(), InstanceSize(Length())) == 0;
+ }
+
void PrintToJSONObject(JSONObject* jsobj, bool ref) const;
private:
@@ -4659,20 +4668,12 @@ class Code : public Object {
}
RawCodeSourceMap* code_source_map() const {
-#if defined(DART_PRECOMPILED_RUNTIME)
- return CodeSourceMap::null();
-#else
return raw_ptr()->code_source_map_;
-#endif
}
void set_code_source_map(const CodeSourceMap& code_source_map) const {
-#if defined(DART_PRECOMPILED_RUNTIME)
- UNREACHABLE();
-#else
ASSERT(code_source_map.IsOld());
StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw());
-#endif
}
// Used during reloading (see object_reload.cc). Calls Reset on all ICDatas
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698