Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 1018853004: Some CompilationInfo-related cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make ASAN happy. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698