From: bmeurer@chromium.org Date: Wed, 7 May 2014 08:42:20 +0000 (+0000) Subject: Turn CHECK()s into ASSERT()s. X-Git-Tag: upstream/4.7.83~9234 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b040340fc2864364bff57a4a906a386620518a9c;p=platform%2Fupstream%2Fv8.git 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 --- diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc index 6f73c1d..5a01d3b 100644 --- a/src/arm/lithium-codegen-arm.cc +++ b/src/arm/lithium-codegen-arm.cc @@ -1877,9 +1877,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) { AllowDeferredHandleDereference smi_check; if (instr->hydrogen()->HasObjectMap()) { Handle object_map = instr->hydrogen()->ObjectMap().handle(); - CHECK(object->IsHeapObject()); - CHECK(!object_map->is_stable() || - *object_map == Handle::cast(object)->map()); + ASSERT(object->IsHeapObject()); + ASSERT(!object_map->is_stable() || + *object_map == Handle::cast(object)->map()); + USE(object_map); } __ Move(ToRegister(instr->result()), object); } diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc index 85f15ae..b064d3d 100644 --- a/src/arm64/lithium-codegen-arm64.cc +++ b/src/arm64/lithium-codegen-arm64.cc @@ -2551,9 +2551,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) { AllowDeferredHandleDereference smi_check; if (instr->hydrogen()->HasObjectMap()) { Handle object_map = instr->hydrogen()->ObjectMap().handle(); - CHECK(object->IsHeapObject()); - CHECK(!object_map->is_stable() || - *object_map == Handle::cast(object)->map()); + ASSERT(object->IsHeapObject()); + ASSERT(!object_map->is_stable() || + *object_map == Handle::cast(object)->map()); + USE(object_map); } __ LoadObject(ToRegister(instr->result()), object); } diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc index ee37d0b..2872d4d 100644 --- a/src/ia32/lithium-codegen-ia32.cc +++ b/src/ia32/lithium-codegen-ia32.cc @@ -2015,9 +2015,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) { AllowDeferredHandleDereference smi_check; if (instr->hydrogen()->HasObjectMap()) { Handle object_map = instr->hydrogen()->ObjectMap().handle(); - CHECK(object->IsHeapObject()); - CHECK(!object_map->is_stable() || - *object_map == Handle::cast(object)->map()); + ASSERT(object->IsHeapObject()); + ASSERT(!object_map->is_stable() || + *object_map == Handle::cast(object)->map()); + USE(object_map); } __ LoadObject(reg, object); } diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc index bdbc010..95ee3a6 100644 --- a/src/mips/lithium-codegen-mips.cc +++ b/src/mips/lithium-codegen-mips.cc @@ -1732,9 +1732,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) { AllowDeferredHandleDereference smi_check; if (instr->hydrogen()->HasObjectMap()) { Handle object_map = instr->hydrogen()->ObjectMap().handle(); - CHECK(object->IsHeapObject()); - CHECK(!object_map->is_stable() || - *object_map == Handle::cast(object)->map()); + ASSERT(object->IsHeapObject()); + ASSERT(!object_map->is_stable() || + *object_map == Handle::cast(object)->map()); + USE(object_map); } __ li(ToRegister(instr->result()), object); } diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc index a53a196..c3dc8ac 100644 --- a/src/x64/lithium-codegen-x64.cc +++ b/src/x64/lithium-codegen-x64.cc @@ -1695,9 +1695,10 @@ void LCodeGen::DoConstantT(LConstantT* instr) { AllowDeferredHandleDereference smi_check; if (instr->hydrogen()->HasObjectMap()) { Handle object_map = instr->hydrogen()->ObjectMap().handle(); - CHECK(object->IsHeapObject()); - CHECK(!object_map->is_stable() || - *object_map == Handle::cast(object)->map()); + ASSERT(object->IsHeapObject()); + ASSERT(!object_map->is_stable() || + *object_map == Handle::cast(object)->map()); + USE(object_map); } __ Move(ToRegister(instr->result()), object); }