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

Side by Side Diff: src/d8-console.h

Issue 2840543002: [d8] implement console for d8. (Closed)
Patch Set: no stress Created 3 years, 8 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/d8.gyp ('k') | src/d8-console.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_D8_CONSOLE_H_
6 #define V8_D8_CONSOLE_H_
7
8 #include "src/base/platform/time.h"
9 #include "src/debug/debug-interface.h"
10 #include "src/debug/interface-types.h"
11
12 namespace v8 {
13
14 class D8Console : public debug::ConsoleDelegate {
15 public:
16 explicit D8Console(Isolate* isolate);
17
18 private:
19 void Log(const debug::ConsoleCallArguments& args) override;
20 void Error(const debug::ConsoleCallArguments& args) override;
21 void Warn(const debug::ConsoleCallArguments& args) override;
22 void Info(const debug::ConsoleCallArguments& args) override;
23 void Debug(const debug::ConsoleCallArguments& args) override;
24 void Time(const debug::ConsoleCallArguments& args) override;
25 void TimeEnd(const debug::ConsoleCallArguments& args) override;
26
27 Isolate* isolate_;
28 std::map<std::string, base::TimeTicks> timers_;
29 base::TimeTicks default_timer_;
30 };
31
32 } // namespace v8
33
34 #endif // V8_D8_CONSOLE_H_
OLDNEW
« no previous file with comments | « src/d8.gyp ('k') | src/d8-console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698