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

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

Issue 2623773004: [wasm] Introduce WasmToInterpreterFrame (Closed)
Patch Set: Renaming Created 3 years, 11 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/objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/debug/debug-evaluate.h" 8 #include "src/debug/debug-evaluate.h"
9 #include "src/debug/debug-frames.h" 9 #include "src/debug/debug-frames.h"
10 #include "src/debug/debug-scopes.h" 10 #include "src/debug/debug-scopes.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 if (it.is_wasm()) { 519 if (it.is_wasm()) {
520 // Create the details array (no dynamic information for wasm). 520 // Create the details array (no dynamic information for wasm).
521 Handle<FixedArray> details = 521 Handle<FixedArray> details =
522 isolate->factory()->NewFixedArray(kFrameDetailsFirstDynamicIndex); 522 isolate->factory()->NewFixedArray(kFrameDetailsFirstDynamicIndex);
523 523
524 // Add the frame id. 524 // Add the frame id.
525 details->set(kFrameDetailsFrameIdIndex, *frame_id); 525 details->set(kFrameDetailsFrameIdIndex, *frame_id);
526 526
527 // Add the function name. 527 // Add the function name.
528 Handle<WasmCompiledModule> compiled_module( 528 Handle<WasmCompiledModule> compiled_module(
529 it.wasm_frame()->wasm_instance()->compiled_module(), isolate); 529 it.wasm_compiled_frame()->wasm_instance()->compiled_module(), isolate);
530 int func_index = it.wasm_frame()->function_index(); 530 int func_index = it.wasm_compiled_frame()->function_index();
531 Handle<String> func_name = WasmCompiledModule::GetFunctionName( 531 Handle<String> func_name = WasmCompiledModule::GetFunctionName(
532 isolate, compiled_module, func_index); 532 isolate, compiled_module, func_index);
533 details->set(kFrameDetailsFunctionIndex, *func_name); 533 details->set(kFrameDetailsFunctionIndex, *func_name);
534 534
535 // Add the script wrapper 535 // Add the script wrapper
536 Handle<Object> script_wrapper = 536 Handle<Object> script_wrapper =
537 Script::GetWrapper(frame_inspector.GetScript()); 537 Script::GetWrapper(frame_inspector.GetScript());
538 details->set(kFrameDetailsScriptIndex, *script_wrapper); 538 details->set(kFrameDetailsScriptIndex, *script_wrapper);
539 539
540 // Add the arguments count. 540 // Add the arguments count.
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 } 1933 }
1934 1934
1935 1935
1936 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1936 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1937 UNIMPLEMENTED(); 1937 UNIMPLEMENTED();
1938 return NULL; 1938 return NULL;
1939 } 1939 }
1940 1940
1941 } // namespace internal 1941 } // namespace internal
1942 } // namespace v8 1942 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698