summaryrefslogtreecommitdiff
path: root/src/3rdparty/v8/src/code-stubs.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-10-27 13:34:16 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-01-05 12:18:10 +0100
commit2fe857938c3d1683df88133582bc3e7736264b10 (patch)
tree1ec9903bd86ffe2d264dcc52a658ebdb0474714e /src/3rdparty/v8/src/code-stubs.h
parente5ba7458fc5418e688de9cf294f5eb96cd6c4510 (diff)
downloadqtjsbackend-2fe857938c3d1683df88133582bc3e7736264b10.tar.gz
[V8] Introduce a QML compilation mode
In QML mode, there is a second global object - known as the QML global object. During property resolution, if a property is not present on the JS global object, it is resolved on the QML global object. This global object behavior is only enabled if a script is being compiled in QML mode. The object to use as the QML global object is passed as a parameter to the Script::Run() method. Any function closures etc. created during the run will retain a reference to this object, so different objects can be passed in different script runs. Change-Id: I4950562d455074578c372d8e0e3089887b06e0a1
Diffstat (limited to 'src/3rdparty/v8/src/code-stubs.h')
-rw-r--r--src/3rdparty/v8/src/code-stubs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/v8/src/code-stubs.h b/src/3rdparty/v8/src/code-stubs.h
index fc7000b..4380764 100644
--- a/src/3rdparty/v8/src/code-stubs.h
+++ b/src/3rdparty/v8/src/code-stubs.h
@@ -326,7 +326,7 @@ class FastNewContextStub : public CodeStub {
static const int kMaximumSlots = 64;
explicit FastNewContextStub(int slots) : slots_(slots) {
- ASSERT(slots_ > 0 && slots_ <= kMaximumSlots);
+ ASSERT(slots_ >= 0 && slots <= kMaximumSlots);
}
void Generate(MacroAssembler* masm);