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

Unified Diff: src/objects.h

Issue 1590273002: [runtime] No need to carry around the creation context for JSBoundFunctions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug. Created 4 years, 11 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/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 8c8be2994cb000d5f9a7f8b903316dfb7894afec..e6417c92edde4d3eb63123469c65dcabc9317cf4 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7244,12 +7244,6 @@ class JSBoundFunction : public JSObject {
// arguments to any call to the wrapped function.
DECL_ACCESSORS(bound_arguments, FixedArray)
- // [creation_context]: The native context in which the function was bound.
- // TODO(bmeurer, verwaest): Can we (mis)use (unused) constructor field in
- // the Map instead of putting this into the object? Only required for
- // JSReceiver::GetCreationContext() anyway.
- DECL_ACCESSORS(creation_context, Context)
-
static MaybeHandle<Context> GetFunctionRealm(
Handle<JSBoundFunction> function);
@@ -7267,9 +7261,7 @@ class JSBoundFunction : public JSObject {
static const int kBoundTargetFunctionOffset = JSObject::kHeaderSize;
static const int kBoundThisOffset = kBoundTargetFunctionOffset + kPointerSize;
static const int kBoundArgumentsOffset = kBoundThisOffset + kPointerSize;
- static const int kCreationContextOffset =
- kBoundArgumentsOffset + kPointerSize;
- static const int kLengthOffset = kCreationContextOffset + kPointerSize;
+ static const int kLengthOffset = kBoundArgumentsOffset + kPointerSize;
static const int kNameOffset = kLengthOffset + kPointerSize;
static const int kSize = kNameOffset + kPointerSize;
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698