1.1 --- a/src/Code.h Sat Dec 22 16:42:20 2012 -0800
1.2 +++ b/src/Code.h Sat Dec 22 18:22:14 2012 -0800
1.3 @@ -44,6 +44,7 @@
1.4 Barriered<ByteArray> sourcemap_;
1.5 unsigned maxStackDepth_;
1.6 unsigned lineNumber_;
1.7 + unsigned maxLoopDepth_;
1.8
1.9 public:
1.10 static inline size_t BytesPerSafepoint(size_t stackDepth) {
1.11 @@ -53,7 +54,7 @@
1.12 public:
1.13 static Code *New(Zone *zone, Handle<ByteArray> bytecode, Handle<FixedArray> locals,
1.14 Handle<FixedArray> objects, Handle<FixedArray> strings, unsigned maxStackDepth,
1.15 - Handle<ByteArray> safepoints, Handle<ByteArray> sourcemap);
1.16 + unsigned maxLoopDepth, Handle<ByteArray> safepoints, Handle<ByteArray> sourcemap);
1.17
1.18 Module *module() {
1.19 return module_;
1.20 @@ -73,6 +74,9 @@
1.21 unsigned maxStackDepth() {
1.22 return maxStackDepth_;
1.23 }
1.24 + unsigned maxLoopDepth() {
1.25 + return maxLoopDepth_;
1.26 + }
1.27 Map *map(size_t index) {
1.28 return Map::cast(objects_->at(index));
1.29 }