OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // is expected on the stack or the accumulator, depending on the platform. | 328 // is expected on the stack or the accumulator, depending on the platform. |
329 // See the platform-specific implementation for details. | 329 // See the platform-specific implementation for details. |
330 void DoTest(Expression* condition, | 330 void DoTest(Expression* condition, |
331 Label* if_true, | 331 Label* if_true, |
332 Label* if_false, | 332 Label* if_false, |
333 Label* fall_through); | 333 Label* fall_through); |
334 void DoTest(const TestContext* context); | 334 void DoTest(const TestContext* context); |
335 | 335 |
336 // Helper function to split control flow and avoid a branch to the | 336 // Helper function to split control flow and avoid a branch to the |
337 // fall-through label if it is set up. | 337 // fall-through label if it is set up. |
338 #ifdef V8_TARGET_ARCH_MIPS | 338 #if V8_TARGET_ARCH_MIPS |
339 void Split(Condition cc, | 339 void Split(Condition cc, |
340 Register lhs, | 340 Register lhs, |
341 const Operand& rhs, | 341 const Operand& rhs, |
342 Label* if_true, | 342 Label* if_true, |
343 Label* if_false, | 343 Label* if_false, |
344 Label* fall_through); | 344 Label* fall_through); |
345 #else // All non-mips arch. | 345 #else // All non-mips arch. |
346 void Split(Condition cc, | 346 void Split(Condition cc, |
347 Label* if_true, | 347 Label* if_true, |
348 Label* if_false, | 348 Label* if_false, |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 } | 881 } |
882 | 882 |
883 private: | 883 private: |
884 Zone* zone_; | 884 Zone* zone_; |
885 }; | 885 }; |
886 | 886 |
887 | 887 |
888 } } // namespace v8::internal | 888 } } // namespace v8::internal |
889 | 889 |
890 #endif // V8_FULL_CODEGEN_H_ | 890 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |