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

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

Issue 2109773004: Move RelocInfo::kNoPosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@removedead
Patch Set: rebase Created 4 years, 5 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/parsing/rewriter.cc ('k') | src/source-position.h » ('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"
11 #include "src/debug/debug.h" 11 #include "src/debug/debug.h"
12 #include "src/frames-inl.h" 12 #include "src/frames-inl.h"
13 #include "src/globals.h"
13 #include "src/interpreter/bytecodes.h" 14 #include "src/interpreter/bytecodes.h"
14 #include "src/interpreter/interpreter.h" 15 #include "src/interpreter/interpreter.h"
15 #include "src/isolate-inl.h" 16 #include "src/isolate-inl.h"
16 #include "src/runtime/runtime.h" 17 #include "src/runtime/runtime.h"
17 #include "src/wasm/wasm-module.h" 18 #include "src/wasm/wasm-module.h"
18 19
19 namespace v8 { 20 namespace v8 {
20 namespace internal { 21 namespace internal {
21 22
22 RUNTIME_FUNCTION(Runtime_DebugBreak) { 23 RUNTIME_FUNCTION(Runtime_DebugBreak) {
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 Script::GetWrapper(frame_inspector.GetScript()); 557 Script::GetWrapper(frame_inspector.GetScript());
557 details->set(kFrameDetailsScriptIndex, *script_wrapper); 558 details->set(kFrameDetailsScriptIndex, *script_wrapper);
558 559
559 // Add the arguments count. 560 // Add the arguments count.
560 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(0)); 561 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(0));
561 562
562 // Add the locals count 563 // Add the locals count
563 details->set(kFrameDetailsLocalCountIndex, Smi::FromInt(0)); 564 details->set(kFrameDetailsLocalCountIndex, Smi::FromInt(0));
564 565
565 // Add the source position. 566 // Add the source position.
566 if (position != RelocInfo::kNoPosition) { 567 if (position != kNoSourcePosition) {
567 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position)); 568 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position));
568 } 569 }
569 570
570 // Add the constructor information. 571 // Add the constructor information.
571 details->set(kFrameDetailsConstructCallIndex, heap->ToBoolean(false)); 572 details->set(kFrameDetailsConstructCallIndex, heap->ToBoolean(false));
572 573
573 // Add the at return information. 574 // Add the at return information.
574 details->set(kFrameDetailsAtReturnIndex, heap->ToBoolean(false)); 575 details->set(kFrameDetailsAtReturnIndex, heap->ToBoolean(false));
575 576
576 // Add flags to indicate information on whether this frame is 577 // Add flags to indicate information on whether this frame is
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 Script::GetWrapper(frame_inspector.GetScript()); 697 Script::GetWrapper(frame_inspector.GetScript());
697 details->set(kFrameDetailsScriptIndex, *script_wrapper); 698 details->set(kFrameDetailsScriptIndex, *script_wrapper);
698 699
699 // Add the arguments count. 700 // Add the arguments count.
700 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count)); 701 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count));
701 702
702 // Add the locals count 703 // Add the locals count
703 details->set(kFrameDetailsLocalCountIndex, Smi::FromInt(local_count)); 704 details->set(kFrameDetailsLocalCountIndex, Smi::FromInt(local_count));
704 705
705 // Add the source position. 706 // Add the source position.
706 if (position != RelocInfo::kNoPosition) { 707 if (position != kNoSourcePosition) {
707 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position)); 708 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position));
708 } else { 709 } else {
709 details->set(kFrameDetailsSourcePositionIndex, heap->undefined_value()); 710 details->set(kFrameDetailsSourcePositionIndex, heap->undefined_value());
710 } 711 }
711 712
712 // Add the constructor information. 713 // Add the constructor information.
713 details->set(kFrameDetailsConstructCallIndex, heap->ToBoolean(constructor)); 714 details->set(kFrameDetailsConstructCallIndex, heap->ToBoolean(constructor));
714 715
715 // Add the at return information. 716 // Add the at return information.
716 details->set(kFrameDetailsAtReturnIndex, heap->ToBoolean(at_return)); 717 details->set(kFrameDetailsAtReturnIndex, heap->ToBoolean(at_return));
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 return Smi::FromInt(isolate->debug()->is_active()); 1781 return Smi::FromInt(isolate->debug()->is_active());
1781 } 1782 }
1782 1783
1783 1784
1784 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1785 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1785 UNIMPLEMENTED(); 1786 UNIMPLEMENTED();
1786 return NULL; 1787 return NULL;
1787 } 1788 }
1788 } // namespace internal 1789 } // namespace internal
1789 } // namespace v8 1790 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/rewriter.cc ('k') | src/source-position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698