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

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

Issue 6705023: Fix COUNTERS use in test-serialize. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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 | « no previous file | 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 isolate->stats_table()->SetCounterFunction(counter_function); 104 isolate->stats_table()->SetCounterFunction(counter_function);
105 HEAP->Setup(false); 105 HEAP->Setup(false);
106 ExternalReferenceEncoder encoder; 106 ExternalReferenceEncoder encoder;
107 CHECK_EQ(make_code(BUILTIN, Builtins::ArrayCode), 107 CHECK_EQ(make_code(BUILTIN, Builtins::ArrayCode),
108 Encode(encoder, Builtins::ArrayCode)); 108 Encode(encoder, Builtins::ArrayCode));
109 CHECK_EQ(make_code(v8::internal::RUNTIME_FUNCTION, Runtime::kAbort), 109 CHECK_EQ(make_code(v8::internal::RUNTIME_FUNCTION, Runtime::kAbort),
110 Encode(encoder, Runtime::kAbort)); 110 Encode(encoder, Runtime::kAbort));
111 CHECK_EQ(make_code(IC_UTILITY, IC::kLoadCallbackProperty), 111 CHECK_EQ(make_code(IC_UTILITY, IC::kLoadCallbackProperty),
112 Encode(encoder, IC_Utility(IC::kLoadCallbackProperty))); 112 Encode(encoder, IC_Utility(IC::kLoadCallbackProperty)));
113 ExternalReference keyed_load_function_prototype = 113 ExternalReference keyed_load_function_prototype =
114 ExternalReference(COUNTERS->keyed_load_function_prototype()); 114 ExternalReference(isolate->counters()->keyed_load_function_prototype());
115 CHECK_EQ(make_code(STATS_COUNTER, Counters::k_keyed_load_function_prototype), 115 CHECK_EQ(make_code(STATS_COUNTER, Counters::k_keyed_load_function_prototype),
116 encoder.Encode(keyed_load_function_prototype.address())); 116 encoder.Encode(keyed_load_function_prototype.address()));
117 ExternalReference the_hole_value_location = 117 ExternalReference the_hole_value_location =
118 ExternalReference::the_hole_value_location(isolate); 118 ExternalReference::the_hole_value_location(isolate);
119 CHECK_EQ(make_code(UNCLASSIFIED, 2), 119 CHECK_EQ(make_code(UNCLASSIFIED, 2),
120 encoder.Encode(the_hole_value_location.address())); 120 encoder.Encode(the_hole_value_location.address()));
121 ExternalReference stack_limit_address = 121 ExternalReference stack_limit_address =
122 ExternalReference::address_of_stack_limit(isolate); 122 ExternalReference::address_of_stack_limit(isolate);
123 CHECK_EQ(make_code(UNCLASSIFIED, 4), 123 CHECK_EQ(make_code(UNCLASSIFIED, 4),
124 encoder.Encode(stack_limit_address.address())); 124 encoder.Encode(stack_limit_address.address()));
(...skipping 20 matching lines...) Expand all
145 HEAP->Setup(false); 145 HEAP->Setup(false);
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(v8::internal::RUNTIME_FUNCTION, 150 decoder.Decode(make_code(v8::internal::RUNTIME_FUNCTION,
151 Runtime::kAbort))); 151 Runtime::kAbort)));
152 CHECK_EQ(AddressOf(IC_Utility(IC::kLoadCallbackProperty)), 152 CHECK_EQ(AddressOf(IC_Utility(IC::kLoadCallbackProperty)),
153 decoder.Decode(make_code(IC_UTILITY, IC::kLoadCallbackProperty))); 153 decoder.Decode(make_code(IC_UTILITY, IC::kLoadCallbackProperty)));
154 ExternalReference keyed_load_function = 154 ExternalReference keyed_load_function =
155 ExternalReference(COUNTERS->keyed_load_function_prototype()); 155 ExternalReference(isolate->counters()->keyed_load_function_prototype());
156 CHECK_EQ(keyed_load_function.address(), 156 CHECK_EQ(keyed_load_function.address(),
157 decoder.Decode( 157 decoder.Decode(
158 make_code(STATS_COUNTER, 158 make_code(STATS_COUNTER,
159 Counters::k_keyed_load_function_prototype))); 159 Counters::k_keyed_load_function_prototype)));
160 CHECK_EQ(ExternalReference::the_hole_value_location(isolate).address(), 160 CHECK_EQ(ExternalReference::the_hole_value_location(isolate).address(),
161 decoder.Decode(make_code(UNCLASSIFIED, 2))); 161 decoder.Decode(make_code(UNCLASSIFIED, 2)));
162 CHECK_EQ(ExternalReference::address_of_stack_limit(isolate).address(), 162 CHECK_EQ(ExternalReference::address_of_stack_limit(isolate).address(),
163 decoder.Decode(make_code(UNCLASSIFIED, 4))); 163 decoder.Decode(make_code(UNCLASSIFIED, 4)));
164 CHECK_EQ(ExternalReference::address_of_real_stack_limit(isolate).address(), 164 CHECK_EQ(ExternalReference::address_of_real_stack_limit(isolate).address(),
165 decoder.Decode(make_code(UNCLASSIFIED, 5))); 165 decoder.Decode(make_code(UNCLASSIFIED, 5)));
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 TEST(TestThatAlwaysFails) { 670 TEST(TestThatAlwaysFails) {
671 bool ArtificialFailure = false; 671 bool ArtificialFailure = false;
672 CHECK(ArtificialFailure); 672 CHECK(ArtificialFailure);
673 } 673 }
674 674
675 675
676 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 676 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
677 bool ArtificialFailure2 = false; 677 bool ArtificialFailure2 = false;
678 CHECK(ArtificialFailure2); 678 CHECK(ArtificialFailure2);
679 } 679 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698