OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/interpreter.h" | 5 #include "src/interpreter/interpreter.h" |
6 | 6 |
7 #include <fstream> | 7 #include <fstream> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 return SUCCEEDED; | 175 return SUCCEEDED; |
176 } | 176 } |
177 | 177 |
178 InterpreterCompilationJob::Status InterpreterCompilationJob::ExecuteJobImpl() { | 178 InterpreterCompilationJob::Status InterpreterCompilationJob::ExecuteJobImpl() { |
179 // TODO(5203): These timers aren't thread safe, move to using the CompilerJob | 179 // TODO(5203): These timers aren't thread safe, move to using the CompilerJob |
180 // timers. | 180 // timers. |
181 RuntimeCallTimerScope runtimeTimer(info()->isolate(), | 181 RuntimeCallTimerScope runtimeTimer(info()->isolate(), |
182 &RuntimeCallStats::CompileIgnition); | 182 &RuntimeCallStats::CompileIgnition); |
183 TimerEventScope<TimerEventCompileIgnition> timer(info()->isolate()); | 183 TimerEventScope<TimerEventCompileIgnition> timer(info()->isolate()); |
184 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileIgnition"); | 184 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileIgnition"); |
185 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( | |
186 info()->isolate(), &tracing::TraceEventStatsTable::CompileIgnition); | |
187 | 185 |
188 generator()->GenerateBytecode(stack_limit()); | 186 generator()->GenerateBytecode(stack_limit()); |
189 | 187 |
190 if (generator()->HasStackOverflow()) { | 188 if (generator()->HasStackOverflow()) { |
191 return FAILED; | 189 return FAILED; |
192 } | 190 } |
193 return SUCCEEDED; | 191 return SUCCEEDED; |
194 } | 192 } |
195 | 193 |
196 InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() { | 194 InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() { |
(...skipping 2267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, | 2462 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, |
2465 __ SmiTag(new_state)); | 2463 __ SmiTag(new_state)); |
2466 __ SetAccumulator(old_state); | 2464 __ SetAccumulator(old_state); |
2467 | 2465 |
2468 __ Dispatch(); | 2466 __ Dispatch(); |
2469 } | 2467 } |
2470 | 2468 |
2471 } // namespace interpreter | 2469 } // namespace interpreter |
2472 } // namespace internal | 2470 } // namespace internal |
2473 } // namespace v8 | 2471 } // namespace v8 |
OLD | NEW |