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

Unified Diff: src/conversions-inl.h

Issue 2225013002: Remove unused isolate parameter from NumberToSize and TryNumberToSize (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/conversions.h ('k') | src/futex-emulation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/conversions-inl.h
diff --git a/src/conversions-inl.h b/src/conversions-inl.h
index d449a8fcd8270d787bf078d73d2ad7bdaf29917a..427a67d1097b717facd06be847bdc85e11a5e53c 100644
--- a/src/conversions-inl.h
+++ b/src/conversions-inl.h
@@ -139,7 +139,7 @@ int64_t NumberToInt64(Object* number) {
return static_cast<int64_t>(number->Number());
}
-bool TryNumberToSize(Isolate* isolate, Object* number, size_t* result) {
+bool TryNumberToSize(Object* number, size_t* result) {
// Do not create handles in this function! Don't use SealHandleScope because
// the function can be used concurrently.
if (number->IsSmi()) {
@@ -163,10 +163,9 @@ bool TryNumberToSize(Isolate* isolate, Object* number, size_t* result) {
}
}
-
-size_t NumberToSize(Isolate* isolate, Object* number) {
+size_t NumberToSize(Object* number) {
size_t result = 0;
- bool is_valid = TryNumberToSize(isolate, number, &result);
+ bool is_valid = TryNumberToSize(number, &result);
CHECK(is_valid);
return result;
}
« no previous file with comments | « src/conversions.h ('k') | src/futex-emulation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698