OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 415 |
416 void FastCodeGenerator::Apply(Expression::Context context, | 416 void FastCodeGenerator::Apply(Expression::Context context, |
417 Label* materialize_true, | 417 Label* materialize_true, |
418 Label* materialize_false) { | 418 Label* materialize_false) { |
419 switch (context) { | 419 switch (context) { |
420 case Expression::kUninitialized: | 420 case Expression::kUninitialized: |
421 | 421 |
422 case Expression::kEffect: | 422 case Expression::kEffect: |
423 ASSERT_EQ(materialize_true, materialize_false); | 423 ASSERT_EQ(materialize_true, materialize_false); |
424 __ bind(materialize_true); | 424 __ bind(materialize_true); |
| 425 break; |
425 | 426 |
426 case Expression::kValue: { | 427 case Expression::kValue: { |
427 Label done; | 428 Label done; |
428 switch (location_) { | 429 switch (location_) { |
429 case kAccumulator: | 430 case kAccumulator: |
430 __ bind(materialize_true); | 431 __ bind(materialize_true); |
431 __ mov(result_register(), Factory::true_value()); | 432 __ mov(result_register(), Factory::true_value()); |
432 __ jmp(&done); | 433 __ jmp(&done); |
433 __ bind(materialize_false); | 434 __ bind(materialize_false); |
434 __ mov(result_register(), Factory::false_value()); | 435 __ mov(result_register(), Factory::false_value()); |
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 __ add(Operand(edx), Immediate(masm_->CodeObject())); | 1804 __ add(Operand(edx), Immediate(masm_->CodeObject())); |
1804 __ mov(Operand(esp, 0), edx); | 1805 __ mov(Operand(esp, 0), edx); |
1805 // And return. | 1806 // And return. |
1806 __ ret(0); | 1807 __ ret(0); |
1807 } | 1808 } |
1808 | 1809 |
1809 | 1810 |
1810 #undef __ | 1811 #undef __ |
1811 | 1812 |
1812 } } // namespace v8::internal | 1813 } } // namespace v8::internal |
OLD | NEW |