diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2012-04-17 11:03:39 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-26 08:55:55 +0200 |
commit | 227e72d1bba70d518639996aab4146b060507cd6 (patch) | |
tree | 723564e760e94a7d205a3d3300c44192e1d2f2e1 /src/3rdparty/v8/src/property.cc | |
parent | 5b1fcb16da41f711f27f2e8ff84de8b70a30b645 (diff) | |
download | qtjsbackend-227e72d1bba70d518639996aab4146b060507cd6.tar.gz |
Updated V8 from git://github.com/v8/v8.git to 57f8959fb264354ba1a2e5118db512f588917061
Update V8 source to version 3.10.1.
* Added optimizations and stability improvements on all platforms.
* Various performance improvements.
* Cleanup ScopeInfo and SerializedScopeInfo.
* Introduce extended mode.
* Implemented performance improvements to the incremental garbage
collector.
* Fixed handling of arrays in DefineOwnProperty. (issue 1756)
* Fixed GCC 4.7 warnings.
* Performance improvements for large Smi-only arrays.
* Reduce the space used by the stack for the profiling thread.
* Reduced memory use immediately after starting V8.
* Fixed VFP detection through compiler defines. (issue 1996)
* Remove static initializers in v8. (issue 1859)
* Optimized boot-up memory use.
* Optimized regular expressions.
Change-Id: I2dad3092612de279179950dae4dd43daf0463a9f
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/3rdparty/v8/src/property.cc')
-rw-r--r-- | src/3rdparty/v8/src/property.cc | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/src/3rdparty/v8/src/property.cc b/src/3rdparty/v8/src/property.cc index 6e043e2..78f237d 100644 --- a/src/3rdparty/v8/src/property.cc +++ b/src/3rdparty/v8/src/property.cc @@ -1,4 +1,4 @@ -// Copyright 2011 the V8 project authors. All rights reserved. +// Copyright 2012 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -91,6 +91,9 @@ void LookupResult::Print(FILE* out) { break; case CONSTANT_TRANSITION: PrintF(out, " -type = constant property transition\n"); + PrintF(out, " -map:\n"); + GetTransitionMap()->Print(out); + PrintF(out, "\n"); break; case NULL_DESCRIPTOR: PrintF(out, " =type = null descriptor\n"); @@ -111,4 +114,28 @@ void Descriptor::Print(FILE* out) { #endif +bool Descriptor::ContainsTransition() { + switch (details_.type()) { + case MAP_TRANSITION: + case CONSTANT_TRANSITION: + case ELEMENTS_TRANSITION: + return true; + case CALLBACKS: { + if (!value_->IsAccessorPair()) return false; + AccessorPair* accessors = AccessorPair::cast(value_); + return accessors->getter()->IsMap() || accessors->setter()->IsMap(); + } + case NORMAL: + case FIELD: + case CONSTANT_FUNCTION: + case HANDLER: + case INTERCEPTOR: + case NULL_DESCRIPTOR: + return false; + } + UNREACHABLE(); // Keep the compiler happy. + return false; +} + + } } // namespace v8::internal |