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