| 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/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/debug.h" | 10 #include "src/debug.h" |
| (...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 return ScopeTypeModule; | 1332 return ScopeTypeModule; |
| 1333 case SCRIPT_SCOPE: | 1333 case SCRIPT_SCOPE: |
| 1334 DCHECK(context_->IsScriptContext() || context_->IsNativeContext()); | 1334 DCHECK(context_->IsScriptContext() || context_->IsNativeContext()); |
| 1335 return ScopeTypeScript; | 1335 return ScopeTypeScript; |
| 1336 case WITH_SCOPE: | 1336 case WITH_SCOPE: |
| 1337 DCHECK(context_->IsWithContext()); | 1337 DCHECK(context_->IsWithContext()); |
| 1338 return ScopeTypeWith; | 1338 return ScopeTypeWith; |
| 1339 case CATCH_SCOPE: | 1339 case CATCH_SCOPE: |
| 1340 DCHECK(context_->IsCatchContext()); | 1340 DCHECK(context_->IsCatchContext()); |
| 1341 return ScopeTypeCatch; | 1341 return ScopeTypeCatch; |
| 1342 case FUNCTION_BODY_SCOPE: |
| 1342 case BLOCK_SCOPE: | 1343 case BLOCK_SCOPE: |
| 1343 DCHECK(!scope_info->HasContext() || context_->IsBlockContext()); | 1344 DCHECK(!scope_info->HasContext() || context_->IsBlockContext()); |
| 1344 return ScopeTypeBlock; | 1345 return ScopeTypeBlock; |
| 1345 case EVAL_SCOPE: | 1346 case EVAL_SCOPE: |
| 1346 UNREACHABLE(); | 1347 UNREACHABLE(); |
| 1347 } | 1348 } |
| 1348 } | 1349 } |
| 1349 if (context_->IsNativeContext()) { | 1350 if (context_->IsNativeContext()) { |
| 1350 DCHECK(context_->global_object()->IsGlobalObject()); | 1351 DCHECK(context_->global_object()->IsGlobalObject()); |
| 1351 // If we are at the native context and have not yet seen script scope, | 1352 // If we are at the native context and have not yet seen script scope, |
| (...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2976 return Smi::FromInt(isolate->debug()->is_active()); | 2977 return Smi::FromInt(isolate->debug()->is_active()); |
| 2977 } | 2978 } |
| 2978 | 2979 |
| 2979 | 2980 |
| 2980 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 2981 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 2981 UNIMPLEMENTED(); | 2982 UNIMPLEMENTED(); |
| 2982 return NULL; | 2983 return NULL; |
| 2983 } | 2984 } |
| 2984 } | 2985 } |
| 2985 } // namespace v8::internal | 2986 } // namespace v8::internal |
| OLD | NEW |