Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 6279) |
+++ src/objects-inl.h (working copy) |
@@ -2238,7 +2238,6 @@ |
void Map::set_instance_type(InstanceType value) { |
- ASSERT(0 <= value && value < 256); |
WRITE_BYTE_FIELD(this, kInstanceTypeOffset, value); |
} |
@@ -3216,28 +3215,28 @@ |
Object* JSBuiltinsObject::javascript_builtin(Builtins::JavaScript id) { |
- ASSERT(0 <= id && id < kJSBuiltinsCount); |
+ ASSERT(id < kJSBuiltinsCount); // id is unsigned. |
return READ_FIELD(this, OffsetOfFunctionWithId(id)); |
} |
void JSBuiltinsObject::set_javascript_builtin(Builtins::JavaScript id, |
Object* value) { |
- ASSERT(0 <= id && id < kJSBuiltinsCount); |
+ ASSERT(id < kJSBuiltinsCount); // id is unsigned. |
WRITE_FIELD(this, OffsetOfFunctionWithId(id), value); |
WRITE_BARRIER(this, OffsetOfFunctionWithId(id)); |
} |
Code* JSBuiltinsObject::javascript_builtin_code(Builtins::JavaScript id) { |
- ASSERT(0 <= id && id < kJSBuiltinsCount); |
+ ASSERT(id < kJSBuiltinsCount); // id is unsigned. |
return Code::cast(READ_FIELD(this, OffsetOfCodeWithId(id))); |
} |
void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id, |
Code* value) { |
- ASSERT(0 <= id && id < kJSBuiltinsCount); |
+ ASSERT(id < kJSBuiltinsCount); // id is unsigned. |
WRITE_FIELD(this, OffsetOfCodeWithId(id), value); |
ASSERT(!Heap::InNewSpace(value)); |
} |