Commit b040340f authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Turn CHECK()s into ASSERT()s.

R=machenbach@chromium.org

Review URL: https://codereview.chromium.org/275433002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21187 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a3fed0af
......@@ -1877,9 +1877,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) {
AllowDeferredHandleDereference smi_check;
if (instr->hydrogen()->HasObjectMap()) {
Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
CHECK(object->IsHeapObject());
CHECK(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
ASSERT(object->IsHeapObject());
ASSERT(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
USE(object_map);
}
__ Move(ToRegister(instr->result()), object);
}
......
......@@ -2551,9 +2551,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) {
AllowDeferredHandleDereference smi_check;
if (instr->hydrogen()->HasObjectMap()) {
Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
CHECK(object->IsHeapObject());
CHECK(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
ASSERT(object->IsHeapObject());
ASSERT(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
USE(object_map);
}
__ LoadObject(ToRegister(instr->result()), object);
}
......
......@@ -2015,9 +2015,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) {
AllowDeferredHandleDereference smi_check;
if (instr->hydrogen()->HasObjectMap()) {
Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
CHECK(object->IsHeapObject());
CHECK(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
ASSERT(object->IsHeapObject());
ASSERT(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
USE(object_map);
}
__ LoadObject(reg, object);
}
......
......@@ -1732,9 +1732,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) {
AllowDeferredHandleDereference smi_check;
if (instr->hydrogen()->HasObjectMap()) {
Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
CHECK(object->IsHeapObject());
CHECK(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
ASSERT(object->IsHeapObject());
ASSERT(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
USE(object_map);
}
__ li(ToRegister(instr->result()), object);
}
......
......@@ -1695,9 +1695,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) {
AllowDeferredHandleDereference smi_check;
if (instr->hydrogen()->HasObjectMap()) {
Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
CHECK(object->IsHeapObject());
CHECK(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
ASSERT(object->IsHeapObject());
ASSERT(!object_map->is_stable() ||
*object_map == Handle<HeapObject>::cast(object)->map());
USE(object_map);
}
__ Move(ToRegister(instr->result()), object);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment