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

Unified Diff: runtime/vm/dart_api_message.cc

Issue 323163002: Adds an assertion to limit snapshot intptr_t size. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_message.cc
===================================================================
--- runtime/vm/dart_api_message.cc (revision 37116)
+++ runtime/vm/dart_api_message.cc (working copy)
@@ -1154,9 +1154,9 @@
Dart_WeakPersistentHandleFinalizer callback =
object->value.as_external_typed_data.callback;
WriteSmi(length);
- WriteIntptrValue(reinterpret_cast<intptr_t>(data));
- WriteIntptrValue(reinterpret_cast<intptr_t>(peer));
- WriteIntptrValue(reinterpret_cast<intptr_t>(callback));
+ WriteRawPointerValue(reinterpret_cast<intptr_t>(data));
+ WriteRawPointerValue(reinterpret_cast<intptr_t>(peer));
+ WriteRawPointerValue(reinterpret_cast<intptr_t>(callback));
break;
}
default:
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698