OLD | NEW |
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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 // property space by setting the expected number of properties for | 842 // property space by setting the expected number of properties for |
843 // the instances of the function. | 843 // the instances of the function. |
844 SetExpectedNofPropertiesFromEstimate(result, | 844 SetExpectedNofPropertiesFromEstimate(result, |
845 lit->expected_property_count()); | 845 lit->expected_property_count()); |
846 | 846 |
847 script->set_compilation_state(Script::COMPILATION_STATE_COMPILED); | 847 script->set_compilation_state(Script::COMPILATION_STATE_COMPILED); |
848 | 848 |
849 live_edit_tracker.RecordFunctionInfo(result, lit, info->zone()); | 849 live_edit_tracker.RecordFunctionInfo(result, lit, info->zone()); |
850 } | 850 } |
851 | 851 |
852 isolate->debug()->OnAfterCompile(script, Debug::NO_AFTER_COMPILE_FLAGS); | 852 isolate->debug()->OnAfterCompile(script); |
853 | 853 |
854 return result; | 854 return result; |
855 } | 855 } |
856 | 856 |
857 | 857 |
858 MaybeHandle<JSFunction> Compiler::GetFunctionFromEval( | 858 MaybeHandle<JSFunction> Compiler::GetFunctionFromEval( |
859 Handle<String> source, | 859 Handle<String> source, |
860 Handle<Context> context, | 860 Handle<Context> context, |
861 StrictMode strict_mode, | 861 StrictMode strict_mode, |
862 ParseRestriction restriction, | 862 ParseRestriction restriction, |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 AllowHandleDereference allow_deref; | 1296 AllowHandleDereference allow_deref; |
1297 bool tracing_on = info()->IsStub() | 1297 bool tracing_on = info()->IsStub() |
1298 ? FLAG_trace_hydrogen_stubs | 1298 ? FLAG_trace_hydrogen_stubs |
1299 : (FLAG_trace_hydrogen && | 1299 : (FLAG_trace_hydrogen && |
1300 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1300 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
1301 return (tracing_on && | 1301 return (tracing_on && |
1302 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1302 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
1303 } | 1303 } |
1304 | 1304 |
1305 } } // namespace v8::internal | 1305 } } // namespace v8::internal |
OLD | NEW |