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

Unified Diff: src/objects.h

Issue 434117: Remove usage of JSArray in Script object... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
« no previous file with comments | « src/messages.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
===================================================================
--- src/objects.h (revision 3373)
+++ src/objects.h (working copy)
@@ -3003,11 +3003,8 @@
DECL_ACCESSORS(compilation_type, Smi)
// [line_ends]: FixedArray of line ends positions.
- DECL_ACCESSORS(line_ends_fixed_array, Object)
+ DECL_ACCESSORS(line_ends, Object)
- // [line_ends]: JSArray of line ends positions.
- DECL_ACCESSORS(line_ends_js_array, Object)
-
// [eval_from_function]: for eval scripts the funcion from which eval was
// called.
DECL_ACCESSORS(eval_from_function, Object)
@@ -3036,16 +3033,8 @@
static const int kWrapperOffset = kContextOffset + kPointerSize;
static const int kTypeOffset = kWrapperOffset + kPointerSize;
static const int kCompilationTypeOffset = kTypeOffset + kPointerSize;
- // We have the line ends array both in FixedArray form and in JSArray form.
- // The FixedArray form is useful when we don't have a context and so can't
- // create a JSArray. The JSArray form is useful when we want to see the
- // array from JS code (e.g. debug-delay.js) which cannot handle unboxed
- // FixedArray objects.
- static const int kLineEndsFixedArrayOffset =
- kCompilationTypeOffset + kPointerSize;
- static const int kLineEndsJSArrayOffset =
- kLineEndsFixedArrayOffset + kPointerSize;
- static const int kIdOffset = kLineEndsJSArrayOffset + kPointerSize;
+ static const int kLineEndsOffset = kCompilationTypeOffset + kPointerSize;
+ static const int kIdOffset = kLineEndsOffset + kPointerSize;
static const int kEvalFromFunctionOffset = kIdOffset + kPointerSize;
static const int kEvalFrominstructionsOffsetOffset =
kEvalFromFunctionOffset + kPointerSize;
« no previous file with comments | « src/messages.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698