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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 #ifdef ENABLE_DEBUGGER_SUPPORT | 125 #ifdef ENABLE_DEBUGGER_SUPPORT |
126 CHECK_EQ(make_code(UNCLASSIFIED, 16), | 126 CHECK_EQ(make_code(UNCLASSIFIED, 16), |
127 encoder.Encode(ExternalReference::debug_break(isolate).address())); | 127 encoder.Encode(ExternalReference::debug_break(isolate).address())); |
128 #endif // ENABLE_DEBUGGER_SUPPORT | 128 #endif // ENABLE_DEBUGGER_SUPPORT |
129 CHECK_EQ(make_code(UNCLASSIFIED, 10), | 129 CHECK_EQ(make_code(UNCLASSIFIED, 10), |
130 encoder.Encode( | 130 encoder.Encode( |
131 ExternalReference::new_space_start(isolate).address())); | 131 ExternalReference::new_space_start(isolate).address())); |
132 CHECK_EQ(make_code(UNCLASSIFIED, 3), | 132 CHECK_EQ(make_code(UNCLASSIFIED, 3), |
133 encoder.Encode( | 133 encoder.Encode( |
134 ExternalReference::roots_array_start(isolate).address())); | 134 ExternalReference::roots_array_start(isolate).address())); |
| 135 CHECK_EQ(make_code(UNCLASSIFIED, 52), |
| 136 encoder.Encode(ExternalReference::cpu_features().address())); |
135 } | 137 } |
136 | 138 |
137 | 139 |
138 TEST(ExternalReferenceDecoder) { | 140 TEST(ExternalReferenceDecoder) { |
139 Isolate* isolate = i::Isolate::Current(); | 141 Isolate* isolate = i::Isolate::Current(); |
140 isolate->stats_table()->SetCounterFunction(counter_function); | 142 isolate->stats_table()->SetCounterFunction(counter_function); |
141 v8::V8::Initialize(); | 143 v8::V8::Initialize(); |
142 | 144 |
143 ExternalReferenceDecoder decoder; | 145 ExternalReferenceDecoder decoder; |
144 CHECK_EQ(AddressOf(Builtins::kArrayCode), | 146 CHECK_EQ(AddressOf(Builtins::kArrayCode), |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 TEST(TestThatAlwaysFails) { | 595 TEST(TestThatAlwaysFails) { |
594 bool ArtificialFailure = false; | 596 bool ArtificialFailure = false; |
595 CHECK(ArtificialFailure); | 597 CHECK(ArtificialFailure); |
596 } | 598 } |
597 | 599 |
598 | 600 |
599 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 601 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
600 bool ArtificialFailure2 = false; | 602 bool ArtificialFailure2 = false; |
601 CHECK(ArtificialFailure2); | 603 CHECK(ArtificialFailure2); |
602 } | 604 } |
OLD | NEW |