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

Unified Diff: src/api.cc

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 | « no previous file | src/builtins/builtins-arraybuffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index a2780f9d27ec225c753fba1afe6865bdc8e7be17..fd70187a2cbd784fe9755e6bebd8e59be0993de4 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6927,10 +6927,9 @@ Local<ArrayBuffer> v8::ArrayBufferView::Buffer() {
size_t v8::ArrayBufferView::CopyContents(void* dest, size_t byte_length) {
i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
- i::Isolate* isolate = self->GetIsolate();
- size_t byte_offset = i::NumberToSize(isolate, self->byte_offset());
+ size_t byte_offset = i::NumberToSize(self->byte_offset());
size_t bytes_to_copy =
- i::Min(byte_length, i::NumberToSize(isolate, self->byte_length()));
+ i::Min(byte_length, i::NumberToSize(self->byte_length()));
if (bytes_to_copy) {
i::DisallowHeapAllocation no_gc;
i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
« no previous file with comments | « no previous file | src/builtins/builtins-arraybuffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698