| 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); |
| 185 | 187 |
| 186 generator()->GenerateBytecode(stack_limit()); | 188 generator()->GenerateBytecode(stack_limit()); |
| 187 | 189 |
| 188 if (generator()->HasStackOverflow()) { | 190 if (generator()->HasStackOverflow()) { |
| 189 return FAILED; | 191 return FAILED; |
| 190 } | 192 } |
| 191 return SUCCEEDED; | 193 return SUCCEEDED; |
| 192 } | 194 } |
| 193 | 195 |
| 194 InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() { | 196 InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() { |
| (...skipping 2267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2462 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, | 2464 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, |
| 2463 __ SmiTag(new_state)); | 2465 __ SmiTag(new_state)); |
| 2464 __ SetAccumulator(old_state); | 2466 __ SetAccumulator(old_state); |
| 2465 | 2467 |
| 2466 __ Dispatch(); | 2468 __ Dispatch(); |
| 2467 } | 2469 } |
| 2468 | 2470 |
| 2469 } // namespace interpreter | 2471 } // namespace interpreter |
| 2470 } // namespace internal | 2472 } // namespace internal |
| 2471 } // namespace v8 | 2473 } // namespace v8 |
| OLD | NEW |