OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3780 Label materialize_true, materialize_false, done; | 3780 Label materialize_true, materialize_false, done; |
3781 VisitForControl(expr->expression(), | 3781 VisitForControl(expr->expression(), |
3782 &materialize_false, | 3782 &materialize_false, |
3783 &materialize_true, | 3783 &materialize_true, |
3784 &materialize_true); | 3784 &materialize_true); |
3785 __ bind(&materialize_true); | 3785 __ bind(&materialize_true); |
3786 PrepareForBailoutForId(expr->MaterializeTrueId(), NO_REGISTERS); | 3786 PrepareForBailoutForId(expr->MaterializeTrueId(), NO_REGISTERS); |
3787 if (context()->IsAccumulatorValue()) { | 3787 if (context()->IsAccumulatorValue()) { |
3788 __ mov(eax, isolate()->factory()->true_value()); | 3788 __ mov(eax, isolate()->factory()->true_value()); |
3789 } else { | 3789 } else { |
3790 __ push(isolate()->factory()->true_value()); | 3790 __ Push(isolate()->factory()->true_value()); |
3791 } | 3791 } |
3792 __ jmp(&done, Label::kNear); | 3792 __ jmp(&done, Label::kNear); |
3793 __ bind(&materialize_false); | 3793 __ bind(&materialize_false); |
3794 PrepareForBailoutForId(expr->MaterializeFalseId(), NO_REGISTERS); | 3794 PrepareForBailoutForId(expr->MaterializeFalseId(), NO_REGISTERS); |
3795 if (context()->IsAccumulatorValue()) { | 3795 if (context()->IsAccumulatorValue()) { |
3796 __ mov(eax, isolate()->factory()->false_value()); | 3796 __ mov(eax, isolate()->factory()->false_value()); |
3797 } else { | 3797 } else { |
3798 __ push(isolate()->factory()->false_value()); | 3798 __ Push(isolate()->factory()->false_value()); |
3799 } | 3799 } |
3800 __ bind(&done); | 3800 __ bind(&done); |
3801 } | 3801 } |
3802 break; | 3802 break; |
3803 } | 3803 } |
3804 | 3804 |
3805 case Token::TYPEOF: { | 3805 case Token::TYPEOF: { |
3806 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); | 3806 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); |
3807 { StackValueContext context(this); | 3807 { StackValueContext context(this); |
3808 VisitForTypeofValue(expr->expression()); | 3808 VisitForTypeofValue(expr->expression()); |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4380 *context_length = 0; | 4380 *context_length = 0; |
4381 return previous_; | 4381 return previous_; |
4382 } | 4382 } |
4383 | 4383 |
4384 | 4384 |
4385 #undef __ | 4385 #undef __ |
4386 | 4386 |
4387 } } // namespace v8::internal | 4387 } } // namespace v8::internal |
4388 | 4388 |
4389 #endif // V8_TARGET_ARCH_IA32 | 4389 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |