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

Unified Diff: src/api.cc

Issue 1369293003: Wrap JSFunction bindings in a helper object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments. Created 5 years, 3 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/debug/debug.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 d6727fab4b1ba1f0645601546bc6331f9b686c3d..c556439f8dc09d2555928cb30ebee1871faa4dab 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4445,11 +4445,10 @@ Local<v8::Value> Function::GetBoundFunction() const {
if (!func->shared()->bound()) {
return v8::Undefined(reinterpret_cast<v8::Isolate*>(func->GetIsolate()));
}
- i::Handle<i::FixedArray> bound_args = i::Handle<i::FixedArray>(
- i::FixedArray::cast(func->function_bindings()));
- i::Handle<i::Object> original(
- bound_args->get(i::JSFunction::kBoundFunctionIndex),
- func->GetIsolate());
+ i::Handle<i::BindingsArray> bound_args = i::Handle<i::BindingsArray>(
+ i::BindingsArray::cast(func->function_bindings()));
+ i::Handle<i::Object> original(bound_args->bound_function(),
+ func->GetIsolate());
return Utils::ToLocal(i::Handle<i::JSFunction>::cast(original));
}
« no previous file with comments | « no previous file | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698