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

Unified Diff: vm/object.h

Issue 10271032: - Add extra checking when validating objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « vm/intrinsifier_ia32.cc ('k') | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.h
===================================================================
--- vm/object.h (revision 7183)
+++ vm/object.h (working copy)
@@ -422,7 +422,7 @@
static RawClass* unhandled_exception_class_; // Class of UnhandledException.
static RawClass* unwind_error_class_; // Class of UnwindError.
- friend void RawObject::Validate() const;
+ friend void RawObject::Validate(Isolate* isolate) const;
friend class SnapshotReader;
// Disallow allocation.
@@ -1196,7 +1196,7 @@
// Make sure that the array size cannot wrap around.
static const intptr_t kMaxTypes = 512 * 1024 * 1024;
RawAbstractType** TypeAddr(intptr_t index) const;
- void SetLength(intptr_t value);
+ void SetLength(intptr_t value) const;
HEAP_OBJECT_IMPLEMENTATION(TypeArguments, AbstractTypeArguments);
friend class Class;
@@ -3500,7 +3500,7 @@
return &raw_ptr()->data()[index];
}
- void SetLength(intptr_t value) {
+ void SetLength(intptr_t value) const {
// This is only safe because we create a new Smi, which does not cause
// heap allocation.
raw_ptr()->length_ = Smi::New(value);
@@ -3709,7 +3709,7 @@
return reinterpret_cast<T*>(addr);
}
- void SetLength(intptr_t value) {
+ void SetLength(intptr_t value) const {
raw_ptr()->length_ = Smi::New(value);
}
@@ -3779,11 +3779,11 @@
return reinterpret_cast<T*>(addr);
}
- void SetLength(intptr_t value) {
+ void SetLength(intptr_t value) const {
raw_ptr()->length_ = Smi::New(value);
}
- void SetExternalData(ExternalByteArrayData* data) {
+ void SetExternalData(ExternalByteArrayData* data) const {
raw_ptr()->external_data_ = data;
}
@@ -3931,7 +3931,7 @@
void set_type(RegExType type) const { raw_ptr()->type_ = type; }
void set_flags(intptr_t value) const { raw_ptr()->flags_ = value; }
- void SetLength(intptr_t value) {
+ void SetLength(intptr_t value) const {
// This is only safe because we create a new Smi, which does not cause
// heap allocation.
raw_ptr()->data_length_ = Smi::New(value);
« no previous file with comments | « vm/intrinsifier_ia32.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698