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

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

Issue 8404030: Version 3.7.1 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 1 month 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-parsing.cc ('k') | test/mjsunit/apply.js » ('j') | 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/mjsunit/apply.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698