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

Side by Side Diff: src/runtime/runtime-wasm.cc

Issue 2731523005: [wasm] Lazy compilation for asm.js (Closed)
Patch Set: [wasm] Lazy compilation for asm.js Created 3 years, 9 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
« no previous file with comments | « src/runtime/runtime.h ('k') | src/wasm/wasm-code-specialization.cc » ('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 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
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
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/wasm/wasm-code-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698