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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 F3 f = FUNCTION_CAST<F3>(Code::cast(code)->entry()); | 1003 F3 f = FUNCTION_CAST<F3>(Code::cast(code)->entry()); |
1004 Object* dummy = CALL_GENERATED_CODE(f, &i, 0, 0, 0, 0); | 1004 Object* dummy = CALL_GENERATED_CODE(f, &i, 0, 0, 0, 0); |
1005 USE(dummy); | 1005 USE(dummy); |
1006 | 1006 |
1007 CHECK_EQ(0xabcd0001, i.a); | 1007 CHECK_EQ(0xabcd0001, i.a); |
1008 CHECK_EQ(static_cast<int32_t>(0xabcd0000) >> 1, i.b); | 1008 CHECK_EQ(static_cast<int32_t>(0xabcd0000) >> 1, i.b); |
1009 CHECK_EQ(0x00000000, i.c); | 1009 CHECK_EQ(0x00000000, i.c); |
1010 CHECK_EQ(0xffffffff, i.d); | 1010 CHECK_EQ(0xffffffff, i.d); |
1011 } | 1011 } |
1012 | 1012 |
| 1013 |
| 1014 TEST(12) { |
| 1015 // Test chaining of label usages within instructions (issue 1644). |
| 1016 InitializeVM(); |
| 1017 v8::HandleScope scope; |
| 1018 Assembler assm(Isolate::Current(), NULL, 0); |
| 1019 |
| 1020 Label target; |
| 1021 __ b(eq, &target); |
| 1022 __ b(ne, &target); |
| 1023 __ bind(&target); |
| 1024 __ nop(); |
| 1025 } |
| 1026 |
1013 #undef __ | 1027 #undef __ |
OLD | NEW |