| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 void FastCodeGenerator::Apply(Expression::Context context, | 418 void FastCodeGenerator::Apply(Expression::Context context, |
| 419 Label* materialize_true, | 419 Label* materialize_true, |
| 420 Label* materialize_false) { | 420 Label* materialize_false) { |
| 421 switch (context) { | 421 switch (context) { |
| 422 case Expression::kUninitialized: | 422 case Expression::kUninitialized: |
| 423 | 423 |
| 424 case Expression::kEffect: | 424 case Expression::kEffect: |
| 425 ASSERT_EQ(materialize_true, materialize_false); | 425 ASSERT_EQ(materialize_true, materialize_false); |
| 426 __ bind(materialize_true); | 426 __ bind(materialize_true); |
| 427 break; |
| 427 | 428 |
| 428 case Expression::kValue: { | 429 case Expression::kValue: { |
| 429 Label done; | 430 Label done; |
| 430 switch (location_) { | 431 switch (location_) { |
| 431 case kAccumulator: | 432 case kAccumulator: |
| 432 __ bind(materialize_true); | 433 __ bind(materialize_true); |
| 433 __ Move(result_register(), Factory::true_value()); | 434 __ Move(result_register(), Factory::true_value()); |
| 434 __ jmp(&done); | 435 __ jmp(&done); |
| 435 __ bind(materialize_false); | 436 __ bind(materialize_false); |
| 436 __ Move(result_register(), Factory::false_value()); | 437 __ Move(result_register(), Factory::false_value()); |
| (...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 __ movq(Operand(rsp, 0), rdx); | 1811 __ movq(Operand(rsp, 0), rdx); |
| 1811 // And return. | 1812 // And return. |
| 1812 __ ret(0); | 1813 __ ret(0); |
| 1813 } | 1814 } |
| 1814 | 1815 |
| 1815 | 1816 |
| 1816 #undef __ | 1817 #undef __ |
| 1817 | 1818 |
| 1818 | 1819 |
| 1819 } } // namespace v8::internal | 1820 } } // namespace v8::internal |
| OLD | NEW |