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

Side by Side Diff: src/compiler.cc

Issue 23729006: thread isolate for files starting with 'b' and 'c' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remaining arches Created 7 years, 3 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 | « src/codegen.cc ('k') | src/contexts.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 shared->set_dont_inline(lit->flags()->Contains(kDontInline)); 838 shared->set_dont_inline(lit->flags()->Contains(kDontInline));
839 shared->set_ast_node_count(lit->ast_node_count()); 839 shared->set_ast_node_count(lit->ast_node_count());
840 840
841 if (V8::UseCrankshaft() && 841 if (V8::UseCrankshaft() &&
842 !function.is_null() && 842 !function.is_null() &&
843 !shared->optimization_disabled()) { 843 !shared->optimization_disabled()) {
844 // If we're asked to always optimize, we compile the optimized 844 // If we're asked to always optimize, we compile the optimized
845 // version of the function right away - unless the debugger is 845 // version of the function right away - unless the debugger is
846 // active as it makes no sense to compile optimized code then. 846 // active as it makes no sense to compile optimized code then.
847 if (FLAG_always_opt && 847 if (FLAG_always_opt &&
848 !Isolate::Current()->DebuggerHasBreakPoints()) { 848 !info->isolate()->DebuggerHasBreakPoints()) {
849 CompilationInfoWithZone optimized(function); 849 CompilationInfoWithZone optimized(function);
850 optimized.SetOptimizing(BailoutId::None()); 850 optimized.SetOptimizing(BailoutId::None());
851 return Compiler::CompileLazy(&optimized); 851 return Compiler::CompileLazy(&optimized);
852 } 852 }
853 } 853 }
854 return true; 854 return true;
855 } 855 }
856 856
857 857
858 static void InstallCodeCommon(CompilationInfo* info) { 858 static void InstallCodeCommon(CompilationInfo* info) {
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 AllowHandleDereference allow_deref; 1256 AllowHandleDereference allow_deref;
1257 bool tracing_on = info()->IsStub() 1257 bool tracing_on = info()->IsStub()
1258 ? FLAG_trace_hydrogen_stubs 1258 ? FLAG_trace_hydrogen_stubs
1259 : (FLAG_trace_hydrogen && 1259 : (FLAG_trace_hydrogen &&
1260 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1260 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1261 return (tracing_on && 1261 return (tracing_on &&
1262 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1262 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1263 } 1263 }
1264 1264
1265 } } // namespace v8::internal 1265 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698