 Chromium Code Reviews
 Chromium Code Reviews Issue 1909353002:
  [wasm] Make wasm info available on the stack trace  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-3
    
  
    Issue 1909353002:
  [wasm] Make wasm info available on the stack trace  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-3| OLD | NEW | 
|---|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast/prettyprinter.h" | 8 #include "src/ast/prettyprinter.h" | 
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" | 
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" | 
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 return *result; | 334 return *result; | 
| 335 } | 335 } | 
| 336 | 336 | 
| 337 #define CALLSITE_GET(NAME, RETURN) \ | 337 #define CALLSITE_GET(NAME, RETURN) \ | 
| 338 RUNTIME_FUNCTION(Runtime_CallSite##NAME##RT) { \ | 338 RUNTIME_FUNCTION(Runtime_CallSite##NAME##RT) { \ | 
| 339 HandleScope scope(isolate); \ | 339 HandleScope scope(isolate); \ | 
| 340 DCHECK(args.length() == 1); \ | 340 DCHECK(args.length() == 1); \ | 
| 341 CONVERT_ARG_HANDLE_CHECKED(JSObject, call_site_obj, 0); \ | 341 CONVERT_ARG_HANDLE_CHECKED(JSObject, call_site_obj, 0); \ | 
| 342 Handle<String> result; \ | 342 Handle<String> result; \ | 
| 343 CallSite call_site(isolate, call_site_obj); \ | 343 CallSite call_site(isolate, call_site_obj); \ | 
| 344 RUNTIME_ASSERT(call_site.IsValid()); \ | |
| 
Yang
2016/05/04 19:02:22
Can we at least have a runtime assert that checks
 
Clemens Hammacher
2016/05/05 12:29:16
Done.
 | |
| 345 return RETURN(call_site.NAME(), isolate); \ | 344 return RETURN(call_site.NAME(), isolate); \ | 
| 346 } | 345 } | 
| 347 | 346 | 
| 348 static inline Object* ReturnDereferencedHandle(Handle<Object> obj, | 347 static inline Object* ReturnDereferencedHandle(Handle<Object> obj, | 
| 349 Isolate* isolate) { | 348 Isolate* isolate) { | 
| 350 return *obj; | 349 return *obj; | 
| 351 } | 350 } | 
| 352 | 351 | 
| 353 | 352 | 
| 354 static inline Object* ReturnPositiveNumberOrNull(int value, Isolate* isolate) { | 353 static inline Object* ReturnPositiveNumberOrNull(int value, Isolate* isolate) { | 
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 515 } | 514 } | 
| 516 | 515 | 
| 517 RUNTIME_FUNCTION(Runtime_RunMicrotasks) { | 516 RUNTIME_FUNCTION(Runtime_RunMicrotasks) { | 
| 518 HandleScope scope(isolate); | 517 HandleScope scope(isolate); | 
| 519 DCHECK(args.length() == 0); | 518 DCHECK(args.length() == 0); | 
| 520 isolate->RunMicrotasks(); | 519 isolate->RunMicrotasks(); | 
| 521 return isolate->heap()->undefined_value(); | 520 return isolate->heap()->undefined_value(); | 
| 522 } | 521 } | 
| 523 } // namespace internal | 522 } // namespace internal | 
| 524 } // namespace v8 | 523 } // namespace v8 | 
| OLD | NEW |