Fix same Windows compiler error in another place.
Review URL: http://codereview.chromium.org/518081 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3571 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
a5247c039c
commit
1670dce1bf
@ -2191,8 +2191,10 @@ void CodeGenerator::Comparison(AstNode* node,
|
|||||||
__ cmp(FieldOperand(left_side.reg(), String::kLengthOffset),
|
__ cmp(FieldOperand(left_side.reg(), String::kLengthOffset),
|
||||||
Immediate(1));
|
Immediate(1));
|
||||||
__ j(not_equal, &comparison_done);
|
__ j(not_equal, &comparison_done);
|
||||||
|
uint8_t char_value =
|
||||||
|
static_cast<uint8_t>(String::cast(*right_side.handle())->Get(0));
|
||||||
__ cmpb(FieldOperand(left_side.reg(), SeqAsciiString::kHeaderSize),
|
__ cmpb(FieldOperand(left_side.reg(), SeqAsciiString::kHeaderSize),
|
||||||
String::cast(*right_side.handle())->Get(0));
|
char_value);
|
||||||
__ bind(&comparison_done);
|
__ bind(&comparison_done);
|
||||||
} else {
|
} else {
|
||||||
__ mov(temp2.reg(),
|
__ mov(temp2.reg(),
|
||||||
|
Loading…
Reference in New Issue
Block a user