Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: test/cctest/test-serialize.cc

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-disasm-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 encoder.Encode(the_hole_value_location.address())); 119 encoder.Encode(the_hole_value_location.address()));
120 ExternalReference stack_limit_address = 120 ExternalReference stack_limit_address =
121 ExternalReference::address_of_stack_limit(); 121 ExternalReference::address_of_stack_limit();
122 CHECK_EQ(make_code(UNCLASSIFIED, 4), 122 CHECK_EQ(make_code(UNCLASSIFIED, 4),
123 encoder.Encode(stack_limit_address.address())); 123 encoder.Encode(stack_limit_address.address()));
124 ExternalReference real_stack_limit_address = 124 ExternalReference real_stack_limit_address =
125 ExternalReference::address_of_real_stack_limit(); 125 ExternalReference::address_of_real_stack_limit();
126 CHECK_EQ(make_code(UNCLASSIFIED, 5), 126 CHECK_EQ(make_code(UNCLASSIFIED, 5),
127 encoder.Encode(real_stack_limit_address.address())); 127 encoder.Encode(real_stack_limit_address.address()));
128 #ifdef ENABLE_DEBUGGER_SUPPORT 128 #ifdef ENABLE_DEBUGGER_SUPPORT
129 CHECK_EQ(make_code(UNCLASSIFIED, 15), 129 CHECK_EQ(make_code(UNCLASSIFIED, 16),
130 encoder.Encode(ExternalReference::debug_break().address())); 130 encoder.Encode(ExternalReference::debug_break().address()));
131 #endif // ENABLE_DEBUGGER_SUPPORT 131 #endif // ENABLE_DEBUGGER_SUPPORT
132 CHECK_EQ(make_code(UNCLASSIFIED, 10), 132 CHECK_EQ(make_code(UNCLASSIFIED, 10),
133 encoder.Encode(ExternalReference::new_space_start().address())); 133 encoder.Encode(ExternalReference::new_space_start().address()));
134 CHECK_EQ(make_code(UNCLASSIFIED, 3), 134 CHECK_EQ(make_code(UNCLASSIFIED, 3),
135 encoder.Encode(ExternalReference::roots_address().address())); 135 encoder.Encode(ExternalReference::roots_address().address()));
136 } 136 }
137 137
138 138
139 TEST(ExternalReferenceDecoder) { 139 TEST(ExternalReferenceDecoder) {
(...skipping 15 matching lines...) Expand all
155 make_code(STATS_COUNTER, 155 make_code(STATS_COUNTER,
156 Counters::k_keyed_load_function_prototype))); 156 Counters::k_keyed_load_function_prototype)));
157 CHECK_EQ(ExternalReference::the_hole_value_location().address(), 157 CHECK_EQ(ExternalReference::the_hole_value_location().address(),
158 decoder.Decode(make_code(UNCLASSIFIED, 2))); 158 decoder.Decode(make_code(UNCLASSIFIED, 2)));
159 CHECK_EQ(ExternalReference::address_of_stack_limit().address(), 159 CHECK_EQ(ExternalReference::address_of_stack_limit().address(),
160 decoder.Decode(make_code(UNCLASSIFIED, 4))); 160 decoder.Decode(make_code(UNCLASSIFIED, 4)));
161 CHECK_EQ(ExternalReference::address_of_real_stack_limit().address(), 161 CHECK_EQ(ExternalReference::address_of_real_stack_limit().address(),
162 decoder.Decode(make_code(UNCLASSIFIED, 5))); 162 decoder.Decode(make_code(UNCLASSIFIED, 5)));
163 #ifdef ENABLE_DEBUGGER_SUPPORT 163 #ifdef ENABLE_DEBUGGER_SUPPORT
164 CHECK_EQ(ExternalReference::debug_break().address(), 164 CHECK_EQ(ExternalReference::debug_break().address(),
165 decoder.Decode(make_code(UNCLASSIFIED, 15))); 165 decoder.Decode(make_code(UNCLASSIFIED, 16)));
166 #endif // ENABLE_DEBUGGER_SUPPORT 166 #endif // ENABLE_DEBUGGER_SUPPORT
167 CHECK_EQ(ExternalReference::new_space_start().address(), 167 CHECK_EQ(ExternalReference::new_space_start().address(),
168 decoder.Decode(make_code(UNCLASSIFIED, 10))); 168 decoder.Decode(make_code(UNCLASSIFIED, 10)));
169 } 169 }
170 170
171 171
172 class FileByteSink : public SnapshotByteSink { 172 class FileByteSink : public SnapshotByteSink {
173 public: 173 public:
174 explicit FileByteSink(const char* snapshot_file) { 174 explicit FileByteSink(const char* snapshot_file) {
175 fp_ = OS::FOpen(snapshot_file, "wb"); 175 fp_ = OS::FOpen(snapshot_file, "wb");
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 TEST(TestThatAlwaysFails) { 672 TEST(TestThatAlwaysFails) {
673 bool ArtificialFailure = false; 673 bool ArtificialFailure = false;
674 CHECK(ArtificialFailure); 674 CHECK(ArtificialFailure);
675 } 675 }
676 676
677 677
678 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 678 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
679 bool ArtificialFailure2 = false; 679 bool ArtificialFailure2 = false;
680 CHECK(ArtificialFailure2); 680 CHECK(ArtificialFailure2);
681 } 681 }
OLDNEW
« no previous file with comments | « test/cctest/test-disasm-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698