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

Side by Side Diff: src/compiler.cc

Issue 410883003: Fix debugger-related issues in the code serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 isolate->counters()->total_load_size()->Increment(source_length); 954 isolate->counters()->total_load_size()->Increment(source_length);
955 isolate->counters()->total_compile_size()->Increment(source_length); 955 isolate->counters()->total_compile_size()->Increment(source_length);
956 956
957 CompilationCache* compilation_cache = isolate->compilation_cache(); 957 CompilationCache* compilation_cache = isolate->compilation_cache();
958 958
959 // Do a lookup in the compilation cache but not for extensions. 959 // Do a lookup in the compilation cache but not for extensions.
960 MaybeHandle<SharedFunctionInfo> maybe_result; 960 MaybeHandle<SharedFunctionInfo> maybe_result;
961 Handle<SharedFunctionInfo> result; 961 Handle<SharedFunctionInfo> result;
962 if (extension == NULL) { 962 if (extension == NULL) {
963 if (FLAG_serialize_toplevel && 963 if (FLAG_serialize_toplevel &&
964 compile_options == ScriptCompiler::kConsumeCodeCache) { 964 compile_options == ScriptCompiler::kConsumeCodeCache &&
965 !isolate->debug()->is_loaded()) {
965 return CodeSerializer::Deserialize(isolate, *cached_data, source); 966 return CodeSerializer::Deserialize(isolate, *cached_data, source);
966 } else { 967 } else {
967 maybe_result = compilation_cache->LookupScript( 968 maybe_result = compilation_cache->LookupScript(
968 source, script_name, line_offset, column_offset, 969 source, script_name, line_offset, column_offset,
969 is_shared_cross_origin, context); 970 is_shared_cross_origin, context);
970 } 971 }
971 } 972 }
972 973
973 base::ElapsedTimer timer; 974 base::ElapsedTimer timer;
974 if (FLAG_profile_deserialization && FLAG_serialize_toplevel && 975 if (FLAG_profile_deserialization && FLAG_serialize_toplevel &&
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 AllowHandleDereference allow_deref; 1343 AllowHandleDereference allow_deref;
1343 bool tracing_on = info()->IsStub() 1344 bool tracing_on = info()->IsStub()
1344 ? FLAG_trace_hydrogen_stubs 1345 ? FLAG_trace_hydrogen_stubs
1345 : (FLAG_trace_hydrogen && 1346 : (FLAG_trace_hydrogen &&
1346 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1347 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1347 return (tracing_on && 1348 return (tracing_on &&
1348 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1349 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1349 } 1350 }
1350 1351
1351 } } // namespace v8::internal 1352 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698