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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 CHECK_EQ(make_code(UNCLASSIFIED, 5), | 123 CHECK_EQ(make_code(UNCLASSIFIED, 5), |
124 encoder.Encode(real_stack_limit_address.address())); | 124 encoder.Encode(real_stack_limit_address.address())); |
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(ExternalReference::roots_address(isolate).address())); | 133 encoder.Encode( |
| 134 ExternalReference::roots_array_start(isolate).address())); |
134 } | 135 } |
135 | 136 |
136 | 137 |
137 TEST(ExternalReferenceDecoder) { | 138 TEST(ExternalReferenceDecoder) { |
138 Isolate* isolate = i::Isolate::Current(); | 139 Isolate* isolate = i::Isolate::Current(); |
139 isolate->stats_table()->SetCounterFunction(counter_function); | 140 isolate->stats_table()->SetCounterFunction(counter_function); |
140 v8::V8::Initialize(); | 141 v8::V8::Initialize(); |
141 | 142 |
142 ExternalReferenceDecoder decoder; | 143 ExternalReferenceDecoder decoder; |
143 CHECK_EQ(AddressOf(Builtins::kArrayCode), | 144 CHECK_EQ(AddressOf(Builtins::kArrayCode), |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 TEST(TestThatAlwaysFails) { | 674 TEST(TestThatAlwaysFails) { |
674 bool ArtificialFailure = false; | 675 bool ArtificialFailure = false; |
675 CHECK(ArtificialFailure); | 676 CHECK(ArtificialFailure); |
676 } | 677 } |
677 | 678 |
678 | 679 |
679 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 680 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
680 bool ArtificialFailure2 = false; | 681 bool ArtificialFailure2 = false; |
681 CHECK(ArtificialFailure2); | 682 CHECK(ArtificialFailure2); |
682 } | 683 } |
OLD | NEW |