| OLD | NEW |
| 1 // Copyright 2007-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2010 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 #ifdef ENABLE_DEBUGGER_SUPPORT | 124 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 125 CHECK_EQ(make_code(UNCLASSIFIED, 16), | 125 CHECK_EQ(make_code(UNCLASSIFIED, 16), |
| 126 encoder.Encode(ExternalReference::debug_break(isolate).address())); | 126 encoder.Encode(ExternalReference::debug_break(isolate).address())); |
| 127 #endif // ENABLE_DEBUGGER_SUPPORT | 127 #endif // ENABLE_DEBUGGER_SUPPORT |
| 128 CHECK_EQ(make_code(UNCLASSIFIED, 10), | 128 CHECK_EQ(make_code(UNCLASSIFIED, 10), |
| 129 encoder.Encode( | 129 encoder.Encode( |
| 130 ExternalReference::new_space_start(isolate).address())); | 130 ExternalReference::new_space_start(isolate).address())); |
| 131 CHECK_EQ(make_code(UNCLASSIFIED, 3), | 131 CHECK_EQ(make_code(UNCLASSIFIED, 3), |
| 132 encoder.Encode( | 132 encoder.Encode( |
| 133 ExternalReference::roots_array_start(isolate).address())); | 133 ExternalReference::roots_array_start(isolate).address())); |
| 134 CHECK_EQ(make_code(UNCLASSIFIED, 52), | 134 CHECK_EQ(make_code(UNCLASSIFIED, 53), |
| 135 encoder.Encode(ExternalReference::cpu_features().address())); | 135 encoder.Encode(ExternalReference::cpu_features().address())); |
| 136 } | 136 } |
| 137 | 137 |
| 138 | 138 |
| 139 TEST(ExternalReferenceDecoder) { | 139 TEST(ExternalReferenceDecoder) { |
| 140 Isolate* isolate = CcTest::i_isolate(); | 140 Isolate* isolate = CcTest::i_isolate(); |
| 141 isolate->stats_table()->SetCounterFunction(counter_function); | 141 isolate->stats_table()->SetCounterFunction(counter_function); |
| 142 v8::V8::Initialize(); | 142 v8::V8::Initialize(); |
| 143 | 143 |
| 144 ExternalReferenceDecoder decoder(isolate); | 144 ExternalReferenceDecoder decoder(isolate); |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 TEST(TestThatAlwaysFails) { | 642 TEST(TestThatAlwaysFails) { |
| 643 bool ArtificialFailure = false; | 643 bool ArtificialFailure = false; |
| 644 CHECK(ArtificialFailure); | 644 CHECK(ArtificialFailure); |
| 645 } | 645 } |
| 646 | 646 |
| 647 | 647 |
| 648 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 648 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
| 649 bool ArtificialFailure2 = false; | 649 bool ArtificialFailure2 = false; |
| 650 CHECK(ArtificialFailure2); | 650 CHECK(ArtificialFailure2); |
| 651 } | 651 } |
| OLD | NEW |