Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index ac10a98c5c0fc10b6aca5ebc258924806a0c3e1e..4e4942c5fc2db18e48c654ec53b8437c63a0097f 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -105,6 +105,10 @@ Node* CodeStubAssembler::Float64Constant(double value) { |
return raw_assembler_->Float64Constant(value); |
} |
+Node* CodeStubAssembler::BooleanMapConstant() { |
+ return HeapConstant(isolate()->factory()->boolean_map()); |
+} |
+ |
Node* CodeStubAssembler::HeapNumberMapConstant() { |
return HeapConstant(isolate()->factory()->heap_number_map()); |
} |
@@ -222,6 +226,11 @@ Node* CodeStubAssembler::LoadHeapNumberValue(Node* object) { |
IntPtrConstant(HeapNumber::kValueOffset - kHeapObjectTag)); |
} |
+Node* CodeStubAssembler::LoadMapBitField(Node* map) { |
+ return Load(MachineType::Uint8(), map, |
+ IntPtrConstant(Map::kBitFieldOffset - kHeapObjectTag)); |
+} |
+ |
Node* CodeStubAssembler::LoadMapInstanceType(Node* map) { |
return Load(MachineType::Uint8(), map, |
IntPtrConstant(Map::kInstanceTypeOffset - kHeapObjectTag)); |
@@ -526,6 +535,16 @@ void CodeStubAssembler::BranchIfFloat64GreaterThanOrEqual(Node* a, Node* b, |
Goto(if_false); |
} |
+void CodeStubAssembler::BranchIfWord32Equal(Node* a, Node* b, Label* if_true, |
+ Label* if_false) { |
+ Label if_equal(this), if_notequal(this); |
+ Branch(Word32Equal(a, b), &if_equal, &if_notequal); |
+ Bind(&if_equal); |
+ Goto(if_true); |
+ Bind(&if_notequal); |
+ Goto(if_false); |
+} |
+ |
Node* CodeStubAssembler::CallN(CallDescriptor* descriptor, Node* code_target, |
Node** args) { |
CallPrologue(); |