Fix clang compilation error.

TBR=yangguo@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24662 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ecac8b08
...@@ -2787,6 +2787,7 @@ void CallICStub::GenerateMiss(MacroAssembler* masm) { ...@@ -2787,6 +2787,7 @@ void CallICStub::GenerateMiss(MacroAssembler* masm) {
// StringCharCodeAtGenerator // StringCharCodeAtGenerator
void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is a smi trigger the non-string case. // If the receiver is a smi trigger the non-string case.
if (check_mode_ == RECEIVER_IS_UNKNOWN) {
__ JumpIfSmi(object_, receiver_not_string_); __ JumpIfSmi(object_, receiver_not_string_);
// Fetch the instance type of the receiver into result register. // Fetch the instance type of the receiver into result register.
...@@ -2795,6 +2796,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { ...@@ -2795,6 +2796,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is not a string trigger the non-string case. // If the receiver is not a string trigger the non-string case.
__ tst(result_, Operand(kIsNotStringMask)); __ tst(result_, Operand(kIsNotStringMask));
__ b(ne, receiver_not_string_); __ b(ne, receiver_not_string_);
}
// If the index is non-smi trigger the non-smi case. // If the index is non-smi trigger the non-smi case.
__ JumpIfNotSmi(index_, &index_not_smi_); __ JumpIfNotSmi(index_, &index_not_smi_);
......
...@@ -3125,6 +3125,7 @@ void CallICStub::GenerateMiss(MacroAssembler* masm) { ...@@ -3125,6 +3125,7 @@ void CallICStub::GenerateMiss(MacroAssembler* masm) {
void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is a smi trigger the non-string case. // If the receiver is a smi trigger the non-string case.
if (check_mode_ == RECEIVER_IS_UNKNOWN) {
__ JumpIfSmi(object_, receiver_not_string_); __ JumpIfSmi(object_, receiver_not_string_);
// Fetch the instance type of the receiver into result register. // Fetch the instance type of the receiver into result register.
...@@ -3133,6 +3134,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { ...@@ -3133,6 +3134,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is not a string trigger the non-string case. // If the receiver is not a string trigger the non-string case.
__ TestAndBranchIfAnySet(result_, kIsNotStringMask, receiver_not_string_); __ TestAndBranchIfAnySet(result_, kIsNotStringMask, receiver_not_string_);
}
// If the index is non-smi trigger the non-smi case. // If the index is non-smi trigger the non-smi case.
__ JumpIfNotSmi(index_, &index_not_smi_); __ JumpIfNotSmi(index_, &index_not_smi_);
......
...@@ -2937,7 +2937,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { ...@@ -2937,7 +2937,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
DCHECK(!t0.is(index_)); DCHECK(!t0.is(index_));
DCHECK(!t0.is(result_)); DCHECK(!t0.is(result_));
DCHECK(!t0.is(object_)); DCHECK(!t0.is(object_));
if (check_mode_ == RECEIVER_IS_UNKNOWN) {
// If the receiver is a smi trigger the non-string case. // If the receiver is a smi trigger the non-string case.
__ JumpIfSmi(object_, receiver_not_string_); __ JumpIfSmi(object_, receiver_not_string_);
...@@ -2947,6 +2947,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { ...@@ -2947,6 +2947,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is not a string trigger the non-string case. // If the receiver is not a string trigger the non-string case.
__ And(t0, result_, Operand(kIsNotStringMask)); __ And(t0, result_, Operand(kIsNotStringMask));
__ Branch(receiver_not_string_, ne, t0, Operand(zero_reg)); __ Branch(receiver_not_string_, ne, t0, Operand(zero_reg));
}
// If the index is non-smi trigger the non-smi case. // If the index is non-smi trigger the non-smi case.
__ JumpIfNotSmi(index_, &index_not_smi_); __ JumpIfNotSmi(index_, &index_not_smi_);
......
...@@ -2739,6 +2739,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { ...@@ -2739,6 +2739,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) {
void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is a smi trigger the non-string case. // If the receiver is a smi trigger the non-string case.
if (check_mode_ == RECEIVER_IS_UNKNOWN) {
__ JumpIfSmi(object_, receiver_not_string_); __ JumpIfSmi(object_, receiver_not_string_);
// Fetch the instance type of the receiver into result register. // Fetch the instance type of the receiver into result register.
...@@ -2747,6 +2748,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { ...@@ -2747,6 +2748,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
// If the receiver is not a string trigger the non-string case. // If the receiver is not a string trigger the non-string case.
__ testb(result_, Immediate(kIsNotStringMask)); __ testb(result_, Immediate(kIsNotStringMask));
__ j(not_zero, receiver_not_string_); __ j(not_zero, receiver_not_string_);
}
// If the index is non-smi trigger the non-smi case. // If the index is non-smi trigger the non-smi case.
__ JumpIfNotSmi(index_, &index_not_smi_); __ JumpIfNotSmi(index_, &index_not_smi_);
......
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