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

Unified Diff: src/objects.cc

Issue 8491041: Fix missing fast property accessors in heap snapshots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: small adjustments for tests Created 9 years, 1 month 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 238fe1e78e8b64245e97156582b5b7c8674bc65a..1e9f8ddf07bb1042e4c8e506c4c1d88e3f7fb6ae 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -103,11 +103,6 @@ void PrintElementsKind(FILE* out, ElementsKind kind) {
}
-// Getters and setters are stored in a fixed array property. These are
-// constants for their indices.
-const int kGetterIndex = 0;
-const int kSetterIndex = 1;
-
MUST_USE_RESULT static MaybeObject* CreateJSValue(JSFunction* constructor,
Object* value) {
Object* result;
@@ -209,6 +204,8 @@ MaybeObject* Object::GetPropertyWithReceiver(Object* receiver,
return value;
}
+const int JSObject::kGetterIndex = 0;
+const int JSObject::kSetterIndex = 1;
MaybeObject* JSObject::GetPropertyWithCallback(Object* receiver,
Object* structure,

Powered by Google App Engine
This is Rietveld 408576698