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

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

Issue 2951473002: Remove enum RelocInfo::CODE_TARGET_WITH_ID. (Closed)
Patch Set: Review update. Created 3 years, 6 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
« no previous file with comments | « src/utils.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3272 matching lines...) Expand 10 before | Expand all | Expand 10 after
3283 CcTest::CollectAllGarbage(); 3283 CcTest::CollectAllGarbage();
3284 3284
3285 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot1))) 3285 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot1)))
3286 ->cleared()); 3286 ->cleared());
3287 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot2))) 3287 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot2)))
3288 ->cleared()); 3288 ->cleared());
3289 } 3289 }
3290 3290
3291 3291
3292 static Code* FindFirstIC(Code* code, Code::Kind kind) { 3292 static Code* FindFirstIC(Code* code, Code::Kind kind) {
3293 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | 3293 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET);
3294 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID);
3295 for (RelocIterator it(code, mask); !it.done(); it.next()) { 3294 for (RelocIterator it(code, mask); !it.done(); it.next()) {
3296 RelocInfo* info = it.rinfo(); 3295 RelocInfo* info = it.rinfo();
3297 Code* target = Code::GetCodeFromTargetAddress(info->target_address()); 3296 Code* target = Code::GetCodeFromTargetAddress(info->target_address());
3298 if (target->is_inline_cache_stub() && target->kind() == kind) { 3297 if (target->is_inline_cache_stub() && target->kind() == kind) {
3299 return target; 3298 return target;
3300 } 3299 }
3301 } 3300 }
3302 return NULL; 3301 return NULL;
3303 } 3302 }
3304 3303
(...skipping 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after
6376 CcTest::CollectAllGarbage(); 6375 CcTest::CollectAllGarbage();
6377 MarkCompactCollector* collector = heap->mark_compact_collector(); 6376 MarkCompactCollector* collector = heap->mark_compact_collector();
6378 if (collector->sweeping_in_progress()) { 6377 if (collector->sweeping_in_progress()) {
6379 collector->EnsureSweepingCompleted(); 6378 collector->EnsureSweepingCompleted();
6380 } 6379 }
6381 CHECK(object->map()->IsMap()); 6380 CHECK(object->map()->IsMap());
6382 } 6381 }
6383 6382
6384 } // namespace internal 6383 } // namespace internal
6385 } // namespace v8 6384 } // namespace v8
OLDNEW
« no previous file with comments | « src/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698