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

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

Issue 1483933002: Deprecate unused RelocInfo::CONSTRUCT_CALL mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/x87/builtins-x87.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 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 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3704 3704
3705 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot1))) 3705 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot1)))
3706 ->cleared()); 3706 ->cleared());
3707 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot2))) 3707 CHECK(!WeakCell::cast(feedback_vector->Get(feedback_helper.slot(slot2)))
3708 ->cleared()); 3708 ->cleared());
3709 } 3709 }
3710 3710
3711 3711
3712 static Code* FindFirstIC(Code* code, Code::Kind kind) { 3712 static Code* FindFirstIC(Code* code, Code::Kind kind) {
3713 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | 3713 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) |
3714 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) |
3715 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID); 3714 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID);
3716 for (RelocIterator it(code, mask); !it.done(); it.next()) { 3715 for (RelocIterator it(code, mask); !it.done(); it.next()) {
3717 RelocInfo* info = it.rinfo(); 3716 RelocInfo* info = it.rinfo();
3718 Code* target = Code::GetCodeFromTargetAddress(info->target_address()); 3717 Code* target = Code::GetCodeFromTargetAddress(info->target_address());
3719 if (target->is_inline_cache_stub() && target->kind() == kind) { 3718 if (target->is_inline_cache_stub() && target->kind() == kind) {
3720 return target; 3719 return target;
3721 } 3720 }
3722 } 3721 }
3723 return NULL; 3722 return NULL;
3724 } 3723 }
(...skipping 2722 matching lines...) Expand 10 before | Expand all | Expand 10 after
6447 isolate->IncrementJsCallsFromApiCounter(); 6446 isolate->IncrementJsCallsFromApiCounter();
6448 isolate->IncrementJsCallsFromApiCounter(); 6447 isolate->IncrementJsCallsFromApiCounter();
6449 isolate->IncrementJsCallsFromApiCounter(); 6448 isolate->IncrementJsCallsFromApiCounter();
6450 calls_per_ms = memory_reducer->SampleAndGetJsCallsPerMs(4); 6449 calls_per_ms = memory_reducer->SampleAndGetJsCallsPerMs(4);
6451 CheckDoubleEquals(2, calls_per_ms); 6450 CheckDoubleEquals(2, calls_per_ms);
6452 } 6451 }
6453 6452
6454 6453
6455 } // namespace internal 6454 } // namespace internal
6456 } // namespace v8 6455 } // namespace v8
OLDNEW
« no previous file with comments | « src/x87/builtins-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698