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

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

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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-debug.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ExternalReferenceEncoder encoder; 105 ExternalReferenceEncoder encoder;
106 CHECK_EQ(make_code(BUILTIN, Builtins::ArrayCode), 106 CHECK_EQ(make_code(BUILTIN, Builtins::ArrayCode),
107 Encode(encoder, Builtins::ArrayCode)); 107 Encode(encoder, Builtins::ArrayCode));
108 CHECK_EQ(make_code(RUNTIME_FUNCTION, Runtime::kAbort), 108 CHECK_EQ(make_code(RUNTIME_FUNCTION, Runtime::kAbort),
109 Encode(encoder, Runtime::kAbort)); 109 Encode(encoder, Runtime::kAbort));
110 CHECK_EQ(make_code(IC_UTILITY, IC::kLoadCallbackProperty), 110 CHECK_EQ(make_code(IC_UTILITY, IC::kLoadCallbackProperty),
111 Encode(encoder, IC_Utility(IC::kLoadCallbackProperty))); 111 Encode(encoder, IC_Utility(IC::kLoadCallbackProperty)));
112 CHECK_EQ(make_code(DEBUG_ADDRESS, register_code(3)), 112 CHECK_EQ(make_code(DEBUG_ADDRESS, register_code(3)),
113 Encode(encoder, Debug_Address(Debug::k_register_address, 3))); 113 Encode(encoder, Debug_Address(Debug::k_register_address, 3)));
114 ExternalReference keyed_load_function_prototype = 114 ExternalReference keyed_load_function_prototype =
115 ExternalReference(&Counters::keyed_load_function_prototype); 115 ExternalReference(&COUNTER(keyed_load_function_prototype));
116 CHECK_EQ(make_code(STATS_COUNTER, Counters::k_keyed_load_function_prototype), 116 CHECK_EQ(make_code(STATS_COUNTER, COUNTER(k_keyed_load_function_prototype)),
117 encoder.Encode(keyed_load_function_prototype.address())); 117 encoder.Encode(keyed_load_function_prototype.address()));
118 ExternalReference passed_function = 118 ExternalReference passed_function =
119 ExternalReference::builtin_passed_function(); 119 ExternalReference::builtin_passed_function();
120 CHECK_EQ(make_code(UNCLASSIFIED, 1), 120 CHECK_EQ(make_code(UNCLASSIFIED, 1),
121 encoder.Encode(passed_function.address())); 121 encoder.Encode(passed_function.address()));
122 ExternalReference the_hole_value_location = 122 ExternalReference the_hole_value_location =
123 ExternalReference::the_hole_value_location(); 123 ExternalReference::the_hole_value_location();
124 CHECK_EQ(make_code(UNCLASSIFIED, 2), 124 CHECK_EQ(make_code(UNCLASSIFIED, 2),
125 encoder.Encode(the_hole_value_location.address())); 125 encoder.Encode(the_hole_value_location.address()));
126 ExternalReference stack_limit_address = 126 ExternalReference stack_limit_address =
(...skipping 19 matching lines...) Expand all
146 ExternalReferenceDecoder decoder; 146 ExternalReferenceDecoder decoder;
147 CHECK_EQ(AddressOf(Builtins::ArrayCode), 147 CHECK_EQ(AddressOf(Builtins::ArrayCode),
148 decoder.Decode(make_code(BUILTIN, Builtins::ArrayCode))); 148 decoder.Decode(make_code(BUILTIN, Builtins::ArrayCode)));
149 CHECK_EQ(AddressOf(Runtime::kAbort), 149 CHECK_EQ(AddressOf(Runtime::kAbort),
150 decoder.Decode(make_code(RUNTIME_FUNCTION, Runtime::kAbort))); 150 decoder.Decode(make_code(RUNTIME_FUNCTION, Runtime::kAbort)));
151 CHECK_EQ(AddressOf(IC_Utility(IC::kLoadCallbackProperty)), 151 CHECK_EQ(AddressOf(IC_Utility(IC::kLoadCallbackProperty)),
152 decoder.Decode(make_code(IC_UTILITY, IC::kLoadCallbackProperty))); 152 decoder.Decode(make_code(IC_UTILITY, IC::kLoadCallbackProperty)));
153 CHECK_EQ(AddressOf(Debug_Address(Debug::k_register_address, 3)), 153 CHECK_EQ(AddressOf(Debug_Address(Debug::k_register_address, 3)),
154 decoder.Decode(make_code(DEBUG_ADDRESS, register_code(3)))); 154 decoder.Decode(make_code(DEBUG_ADDRESS, register_code(3))));
155 ExternalReference keyed_load_function = 155 ExternalReference keyed_load_function =
156 ExternalReference(&Counters::keyed_load_function_prototype); 156 ExternalReference(&COUNTER(keyed_load_function_prototype));
157 CHECK_EQ(keyed_load_function.address(), 157 CHECK_EQ(keyed_load_function.address(),
158 decoder.Decode( 158 decoder.Decode(
159 make_code(STATS_COUNTER, 159 make_code(STATS_COUNTER,
160 Counters::k_keyed_load_function_prototype))); 160 COUNTER(k_keyed_load_function_prototype))));
161 CHECK_EQ(ExternalReference::builtin_passed_function().address(), 161 CHECK_EQ(ExternalReference::builtin_passed_function().address(),
162 decoder.Decode(make_code(UNCLASSIFIED, 1))); 162 decoder.Decode(make_code(UNCLASSIFIED, 1)));
163 CHECK_EQ(ExternalReference::the_hole_value_location().address(), 163 CHECK_EQ(ExternalReference::the_hole_value_location().address(),
164 decoder.Decode(make_code(UNCLASSIFIED, 2))); 164 decoder.Decode(make_code(UNCLASSIFIED, 2)));
165 CHECK_EQ(ExternalReference::address_of_stack_limit().address(), 165 CHECK_EQ(ExternalReference::address_of_stack_limit().address(),
166 decoder.Decode(make_code(UNCLASSIFIED, 4))); 166 decoder.Decode(make_code(UNCLASSIFIED, 4)));
167 CHECK_EQ(ExternalReference::address_of_real_stack_limit().address(), 167 CHECK_EQ(ExternalReference::address_of_real_stack_limit().address(),
168 decoder.Decode(make_code(UNCLASSIFIED, 5))); 168 decoder.Decode(make_code(UNCLASSIFIED, 5)));
169 CHECK_EQ(ExternalReference::debug_break().address(), 169 CHECK_EQ(ExternalReference::debug_break().address(),
170 decoder.Decode(make_code(UNCLASSIFIED, 11))); 170 decoder.Decode(make_code(UNCLASSIFIED, 11)));
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 TEST(TestThatAlwaysFails) { 284 TEST(TestThatAlwaysFails) {
285 bool ArtificialFailure = false; 285 bool ArtificialFailure = false;
286 CHECK(ArtificialFailure); 286 CHECK(ArtificialFailure);
287 } 287 }
288 288
289 289
290 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 290 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
291 bool ArtificialFailure2 = false; 291 bool ArtificialFailure2 = false;
292 CHECK(ArtificialFailure2); 292 CHECK(ArtificialFailure2);
293 } 293 }
OLDNEW
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698