OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/wasm-compiler.h" | 9 #include "src/compiler/wasm-compiler.h" |
10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 DCHECK_NULL(isolate->context()); | 201 DCHECK_NULL(isolate->context()); |
202 isolate->set_context(GetWasmContextOnStackTop(isolate)); | 202 isolate->set_context(GetWasmContextOnStackTop(isolate)); |
203 | 203 |
204 // Check if this is a real stack overflow. | 204 // Check if this is a real stack overflow. |
205 StackLimitCheck check(isolate); | 205 StackLimitCheck check(isolate); |
206 if (check.JsHasOverflowed()) return isolate->StackOverflow(); | 206 if (check.JsHasOverflowed()) return isolate->StackOverflow(); |
207 | 207 |
208 return isolate->stack_guard()->HandleInterrupts(); | 208 return isolate->stack_guard()->HandleInterrupts(); |
209 } | 209 } |
210 | 210 |
| 211 RUNTIME_FUNCTION(Runtime_WasmCompileLazy) { |
| 212 DCHECK(args.length() == 0); |
| 213 HandleScope scope(isolate); |
| 214 |
| 215 return *wasm::CompileLazy(isolate); |
| 216 } |
| 217 |
211 } // namespace internal | 218 } // namespace internal |
212 } // namespace v8 | 219 } // namespace v8 |
OLD | NEW |