OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/debug.h" | 9 #include "src/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 case WITH_SCOPE: | 1292 case WITH_SCOPE: |
1293 DCHECK(context_->IsWithContext()); | 1293 DCHECK(context_->IsWithContext()); |
1294 return ScopeTypeWith; | 1294 return ScopeTypeWith; |
1295 case CATCH_SCOPE: | 1295 case CATCH_SCOPE: |
1296 DCHECK(context_->IsCatchContext()); | 1296 DCHECK(context_->IsCatchContext()); |
1297 return ScopeTypeCatch; | 1297 return ScopeTypeCatch; |
1298 case BLOCK_SCOPE: | 1298 case BLOCK_SCOPE: |
1299 DCHECK(!scope_info->HasContext() || context_->IsBlockContext()); | 1299 DCHECK(!scope_info->HasContext() || context_->IsBlockContext()); |
1300 return ScopeTypeBlock; | 1300 return ScopeTypeBlock; |
1301 case EVAL_SCOPE: | 1301 case EVAL_SCOPE: |
| 1302 case CLASS_SCOPE: |
1302 UNREACHABLE(); | 1303 UNREACHABLE(); |
1303 } | 1304 } |
1304 } | 1305 } |
1305 if (context_->IsNativeContext()) { | 1306 if (context_->IsNativeContext()) { |
1306 DCHECK(context_->global_object()->IsGlobalObject()); | 1307 DCHECK(context_->global_object()->IsGlobalObject()); |
1307 // If we are at the native context and have not yet seen script scope, | 1308 // If we are at the native context and have not yet seen script scope, |
1308 // fake it. | 1309 // fake it. |
1309 return seen_script_scope_ ? ScopeTypeGlobal : ScopeTypeScript; | 1310 return seen_script_scope_ ? ScopeTypeGlobal : ScopeTypeScript; |
1310 } | 1311 } |
1311 if (context_->IsFunctionContext()) { | 1312 if (context_->IsFunctionContext()) { |
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2811 return Smi::FromInt(isolate->debug()->is_active()); | 2812 return Smi::FromInt(isolate->debug()->is_active()); |
2812 } | 2813 } |
2813 | 2814 |
2814 | 2815 |
2815 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { | 2816 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { |
2816 UNIMPLEMENTED(); | 2817 UNIMPLEMENTED(); |
2817 return NULL; | 2818 return NULL; |
2818 } | 2819 } |
2819 } | 2820 } |
2820 } // namespace v8::internal | 2821 } // namespace v8::internal |
OLD | NEW |