| 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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 DCHECK(scope_info->scope_type() == EVAL_SCOPE); | 1211 DCHECK(scope_info->scope_type() == EVAL_SCOPE); |
| 1212 info.set_eval(); | 1212 info.set_eval(); |
| 1213 info.set_context(Handle<Context>(function_->context())); | 1213 info.set_context(Handle<Context>(function_->context())); |
| 1214 } | 1214 } |
| 1215 if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { | 1215 if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { |
| 1216 scope = info.function()->scope(); | 1216 scope = info.function()->scope(); |
| 1217 } | 1217 } |
| 1218 RetrieveScopeChain(scope, shared_info); | 1218 RetrieveScopeChain(scope, shared_info); |
| 1219 } else { | 1219 } else { |
| 1220 // Function code | 1220 // Function code |
| 1221 ParseInfo info(&zone, shared_info); | 1221 ParseInfo info(&zone, function_); |
| 1222 if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { | 1222 if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { |
| 1223 scope = info.function()->scope(); | 1223 scope = info.function()->scope(); |
| 1224 } | 1224 } |
| 1225 RetrieveScopeChain(scope, shared_info); | 1225 RetrieveScopeChain(scope, shared_info); |
| 1226 } | 1226 } |
| 1227 } | 1227 } |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 ScopeIterator(Isolate* isolate, Handle<JSFunction> function) | 1230 ScopeIterator(Isolate* isolate, Handle<JSFunction> function) |
| 1231 : isolate_(isolate), | 1231 : isolate_(isolate), |
| (...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2820 return Smi::FromInt(isolate->debug()->is_active()); | 2820 return Smi::FromInt(isolate->debug()->is_active()); |
| 2821 } | 2821 } |
| 2822 | 2822 |
| 2823 | 2823 |
| 2824 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 2824 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 2825 UNIMPLEMENTED(); | 2825 UNIMPLEMENTED(); |
| 2826 return NULL; | 2826 return NULL; |
| 2827 } | 2827 } |
| 2828 } | 2828 } |
| 2829 } // namespace v8::internal | 2829 } // namespace v8::internal |
| OLD | NEW |