| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 encoder.Encode(the_hole_value_location.address())); | 118 encoder.Encode(the_hole_value_location.address())); |
| 119 ExternalReference stack_limit_address = | 119 ExternalReference stack_limit_address = |
| 120 ExternalReference::address_of_stack_limit(); | 120 ExternalReference::address_of_stack_limit(); |
| 121 CHECK_EQ(make_code(UNCLASSIFIED, 4), | 121 CHECK_EQ(make_code(UNCLASSIFIED, 4), |
| 122 encoder.Encode(stack_limit_address.address())); | 122 encoder.Encode(stack_limit_address.address())); |
| 123 ExternalReference real_stack_limit_address = | 123 ExternalReference real_stack_limit_address = |
| 124 ExternalReference::address_of_real_stack_limit(); | 124 ExternalReference::address_of_real_stack_limit(); |
| 125 CHECK_EQ(make_code(UNCLASSIFIED, 5), | 125 CHECK_EQ(make_code(UNCLASSIFIED, 5), |
| 126 encoder.Encode(real_stack_limit_address.address())); | 126 encoder.Encode(real_stack_limit_address.address())); |
| 127 #ifdef ENABLE_DEBUGGER_SUPPORT | 127 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 128 CHECK_EQ(make_code(UNCLASSIFIED, 15), | 128 CHECK_EQ(make_code(UNCLASSIFIED, 16), |
| 129 encoder.Encode(ExternalReference::debug_break().address())); | 129 encoder.Encode(ExternalReference::debug_break().address())); |
| 130 #endif // ENABLE_DEBUGGER_SUPPORT | 130 #endif // ENABLE_DEBUGGER_SUPPORT |
| 131 CHECK_EQ(make_code(UNCLASSIFIED, 10), | 131 CHECK_EQ(make_code(UNCLASSIFIED, 10), |
| 132 encoder.Encode(ExternalReference::new_space_start().address())); | 132 encoder.Encode(ExternalReference::new_space_start().address())); |
| 133 CHECK_EQ(make_code(UNCLASSIFIED, 3), | 133 CHECK_EQ(make_code(UNCLASSIFIED, 3), |
| 134 encoder.Encode(ExternalReference::roots_address().address())); | 134 encoder.Encode(ExternalReference::roots_address().address())); |
| 135 } | 135 } |
| 136 | 136 |
| 137 | 137 |
| 138 TEST(ExternalReferenceDecoder) { | 138 TEST(ExternalReferenceDecoder) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 153 make_code(STATS_COUNTER, | 153 make_code(STATS_COUNTER, |
| 154 Counters::k_keyed_load_function_prototype))); | 154 Counters::k_keyed_load_function_prototype))); |
| 155 CHECK_EQ(ExternalReference::the_hole_value_location().address(), | 155 CHECK_EQ(ExternalReference::the_hole_value_location().address(), |
| 156 decoder.Decode(make_code(UNCLASSIFIED, 2))); | 156 decoder.Decode(make_code(UNCLASSIFIED, 2))); |
| 157 CHECK_EQ(ExternalReference::address_of_stack_limit().address(), | 157 CHECK_EQ(ExternalReference::address_of_stack_limit().address(), |
| 158 decoder.Decode(make_code(UNCLASSIFIED, 4))); | 158 decoder.Decode(make_code(UNCLASSIFIED, 4))); |
| 159 CHECK_EQ(ExternalReference::address_of_real_stack_limit().address(), | 159 CHECK_EQ(ExternalReference::address_of_real_stack_limit().address(), |
| 160 decoder.Decode(make_code(UNCLASSIFIED, 5))); | 160 decoder.Decode(make_code(UNCLASSIFIED, 5))); |
| 161 #ifdef ENABLE_DEBUGGER_SUPPORT | 161 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 162 CHECK_EQ(ExternalReference::debug_break().address(), | 162 CHECK_EQ(ExternalReference::debug_break().address(), |
| 163 decoder.Decode(make_code(UNCLASSIFIED, 15))); | 163 decoder.Decode(make_code(UNCLASSIFIED, 16))); |
| 164 #endif // ENABLE_DEBUGGER_SUPPORT | 164 #endif // ENABLE_DEBUGGER_SUPPORT |
| 165 CHECK_EQ(ExternalReference::new_space_start().address(), | 165 CHECK_EQ(ExternalReference::new_space_start().address(), |
| 166 decoder.Decode(make_code(UNCLASSIFIED, 10))); | 166 decoder.Decode(make_code(UNCLASSIFIED, 10))); |
| 167 } | 167 } |
| 168 | 168 |
| 169 | 169 |
| 170 class FileByteSink : public SnapshotByteSink { | 170 class FileByteSink : public SnapshotByteSink { |
| 171 public: | 171 public: |
| 172 explicit FileByteSink(const char* snapshot_file) { | 172 explicit FileByteSink(const char* snapshot_file) { |
| 173 fp_ = OS::FOpen(snapshot_file, "wb"); | 173 fp_ = OS::FOpen(snapshot_file, "wb"); |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 TEST(TestThatAlwaysFails) { | 674 TEST(TestThatAlwaysFails) { |
| 675 bool ArtificialFailure = false; | 675 bool ArtificialFailure = false; |
| 676 CHECK(ArtificialFailure); | 676 CHECK(ArtificialFailure); |
| 677 } | 677 } |
| 678 | 678 |
| 679 | 679 |
| 680 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 680 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
| 681 bool ArtificialFailure2 = false; | 681 bool ArtificialFailure2 = false; |
| 682 CHECK(ArtificialFailure2); | 682 CHECK(ArtificialFailure2); |
| 683 } | 683 } |
| OLD | NEW |