Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 076398906c9a63bb0d81325de8831f7834ee5daf..7c6f7e327c9b169e4c4e0c855696e24a597ebf30 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -139,7 +139,7 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
// rdi: constructor |
__ movq(rax, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset)); |
// Will both indicate a NULL and a Smi |
- ASSERT(kSmiTag == 0); |
+ STATIC_ASSERT(kSmiTag == 0); |
__ JumpIfSmi(rax, &rt_call); |
// rdi: constructor |
// rax: initial map (if proven valid below) |
@@ -1283,7 +1283,7 @@ void Builtins::Generate_ArrayCode(MacroAssembler* masm) { |
// Initial map for the builtin Array functions should be maps. |
__ movq(rbx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset)); |
// Will both indicate a NULL and a Smi. |
- ASSERT(kSmiTag == 0); |
+ STATIC_ASSERT(kSmiTag == 0); |
Condition not_smi = NegateCondition(masm->CheckSmi(rbx)); |
__ Check(not_smi, "Unexpected initial map for Array function"); |
__ CmpObjectType(rbx, MAP_TYPE, rcx); |
@@ -1317,7 +1317,7 @@ void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) { |
// Initial map for the builtin Array function should be a map. |
__ movq(rbx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset)); |
// Will both indicate a NULL and a Smi. |
- ASSERT(kSmiTag == 0); |
+ STATIC_ASSERT(kSmiTag == 0); |
Condition not_smi = NegateCondition(masm->CheckSmi(rbx)); |
__ Check(not_smi, "Unexpected initial map for Array function"); |
__ CmpObjectType(rbx, MAP_TYPE, rcx); |