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

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

Issue 2591653002: [wasm] Introduce WasmSharedModuleData and refactor other objects (Closed)
Patch Set: Fix SLOW_DCHECK Created 4 years 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/messages.cc ('k') | src/runtime/runtime-test.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 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 if (it.is_wasm()) { 520 if (it.is_wasm()) {
521 // Create the details array (no dynamic information for wasm). 521 // Create the details array (no dynamic information for wasm).
522 Handle<FixedArray> details = 522 Handle<FixedArray> details =
523 isolate->factory()->NewFixedArray(kFrameDetailsFirstDynamicIndex); 523 isolate->factory()->NewFixedArray(kFrameDetailsFirstDynamicIndex);
524 524
525 // Add the frame id. 525 // Add the frame id.
526 details->set(kFrameDetailsFrameIdIndex, *frame_id); 526 details->set(kFrameDetailsFrameIdIndex, *frame_id);
527 527
528 // Add the function name. 528 // Add the function name.
529 Handle<WasmCompiledModule> compiled_module( 529 Handle<WasmCompiledModule> compiled_module(
530 it.wasm_frame()->wasm_instance()->get_compiled_module(), isolate); 530 it.wasm_frame()->wasm_instance()->compiled_module(), isolate);
531 int func_index = it.wasm_frame()->function_index(); 531 int func_index = it.wasm_frame()->function_index();
532 Handle<String> func_name = WasmCompiledModule::GetFunctionName( 532 Handle<String> func_name = WasmCompiledModule::GetFunctionName(
533 isolate, compiled_module, func_index); 533 isolate, compiled_module, func_index);
534 details->set(kFrameDetailsFunctionIndex, *func_name); 534 details->set(kFrameDetailsFunctionIndex, *func_name);
535 535
536 // Add the script wrapper 536 // Add the script wrapper
537 Handle<Object> script_wrapper = 537 Handle<Object> script_wrapper =
538 Script::GetWrapper(frame_inspector.GetScript()); 538 Script::GetWrapper(frame_inspector.GetScript());
539 details->set(kFrameDetailsScriptIndex, *script_wrapper); 539 details->set(kFrameDetailsScriptIndex, *script_wrapper);
540 540
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 } 1913 }
1914 1914
1915 1915
1916 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1916 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1917 UNIMPLEMENTED(); 1917 UNIMPLEMENTED();
1918 return NULL; 1918 return NULL;
1919 } 1919 }
1920 1920
1921 } // namespace internal 1921 } // namespace internal
1922 } // namespace v8 1922 } // namespace v8
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/runtime/runtime-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698