Skip to content

Commit

Permalink
[V8] Fix assertions in mjsunit/harmony test in debug mode
Browse files Browse the repository at this point in the history
This fix adds numeric field for QMLContextLocalCount in ScopeInfo which
is needed for the correct kVariablePartIndex value.

This change should be squashed into the "V8 Introduce a QML compilation
mode" commit (2df5be4) in the next V8
rebase.

Change-Id: Id04a593e0626908371c4c69304eb26dd4ff11f20
Reviewed-by: Kent Hansen <[email protected]>
  • Loading branch information
stampho authored and Qt by Nokia committed Sep 4, 2012
1 parent 3c17d2e commit 9b63204
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/3rdparty/v8/src/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -3453,11 +3453,14 @@ class ScopeInfo : public FixedArray {
// 3. The number of non-parameter variables allocated on the stack.
// 4. The number of non-parameter and parameter variables allocated in the
// context.
// 5. The number of non-parameter and parameter variables allocated in the
// QML context. (technically placeholder)
#define FOR_EACH_NUMERIC_FIELD(V) \
V(Flags) \
V(ParameterCount) \
V(StackLocalCount) \
V(ContextLocalCount)
V(ContextLocalCount) \
V(QmlContextLocalCount)

#define FIELD_ACCESSORS(name) \
void Set##name(int value) { \
Expand Down

0 comments on commit 9b63204

Please sign in to comment.