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

Side by Side Diff: src/inspector/java-script-call-frame.h

Issue 2583173002: Revert of [inspector] gracefully handle stack overflows in the inspector. (Closed)
Patch Set: 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/d8.cc ('k') | src/inspector/java-script-call-frame.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 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 new JavaScriptCallFrame(debuggerContext, callFrame)); 48 new JavaScriptCallFrame(debuggerContext, callFrame));
49 } 49 }
50 ~JavaScriptCallFrame(); 50 ~JavaScriptCallFrame();
51 51
52 int sourceID() const; 52 int sourceID() const;
53 int line() const; 53 int line() const;
54 int column() const; 54 int column() const;
55 int contextId() const; 55 int contextId() const;
56 56
57 bool isAtReturn() const; 57 bool isAtReturn() const;
58 v8::MaybeLocal<v8::Object> details() const; 58 v8::Local<v8::Object> details() const;
59 59
60 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); 60 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression);
61 v8::MaybeLocal<v8::Value> restart(); 61 v8::MaybeLocal<v8::Value> restart();
62 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, 62 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber,
63 v8::Local<v8::Value> variableName, 63 v8::Local<v8::Value> variableName,
64 v8::Local<v8::Value> newValue); 64 v8::Local<v8::Value> newValue);
65 65
66 private: 66 private:
67 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, 67 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext,
68 v8::Local<v8::Object> callFrame); 68 v8::Local<v8::Object> callFrame);
69 69
70 int callV8FunctionReturnInt(const char* name) const; 70 int callV8FunctionReturnInt(const char* name) const;
71 71
72 v8::Isolate* m_isolate; 72 v8::Isolate* m_isolate;
73 v8::Global<v8::Context> m_debuggerContext; 73 v8::Global<v8::Context> m_debuggerContext;
74 v8::Global<v8::Object> m_callFrame; 74 v8::Global<v8::Object> m_callFrame;
75 75
76 DISALLOW_COPY_AND_ASSIGN(JavaScriptCallFrame); 76 DISALLOW_COPY_AND_ASSIGN(JavaScriptCallFrame);
77 }; 77 };
78 78
79 using JavaScriptCallFrames = std::vector<std::unique_ptr<JavaScriptCallFrame>>; 79 using JavaScriptCallFrames = std::vector<std::unique_ptr<JavaScriptCallFrame>>;
80 80
81 } // namespace v8_inspector 81 } // namespace v8_inspector
82 82
83 #endif // V8_INSPECTOR_JAVASCRIPTCALLFRAME_H_ 83 #endif // V8_INSPECTOR_JAVASCRIPTCALLFRAME_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/inspector/java-script-call-frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698