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

Side by Side Diff: src/builtins/builtins-console.cc

Issue 2785293002: [inspector] move console to builtins (Closed)
Patch Set: use console helper 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
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 #include "src/builtins/builtins-console.h"
6
7 #include "src/builtins/builtins.h"
8
9 #include "src/counters.h"
dgozman 2017/04/03 20:19:42 Remove?
kozy 2017/04/03 22:34:40 Done.
10 #include "src/objects-inl.h"
11
12 namespace v8 {
13 namespace internal {
14
15 // -----------------------------------------------------------------------------
16 // Console
17
18 #define CONSOLE_METHOD_LIST(V) \
19 V(Debug) \
20 V(Error) \
21 V(Info) \
22 V(Log) \
23 V(Warn) \
24 V(Dir) \
25 V(DirXml) \
26 V(Table) \
27 V(Trace) \
28 V(Group) \
29 V(GroupCollapsed) \
30 V(GroupEnd) \
31 V(Clear) \
32 V(Count) \
33 V(Assert) \
34 V(MarkTimeline) \
35 V(Profile) \
36 V(ProfileEnd) \
37 V(Timeline) \
38 V(TimelineEnd) \
39 V(Time) \
40 V(TimeEnd) \
41 V(TimeStamp)
42
43 #define CONSOLE_BUILTIN_IMPLEMENTATION(name) \
44 BUILTIN(Console##name) { \
45 HandleScope scope(isolate); \
46 if (isolate->console_delegate()) { \
47 ConsoleCallArguments wrapper(args); \
48 isolate->console_delegate()->name(wrapper); \
49 } \
50 return isolate->heap()->undefined_value(); \
51 }
52 CONSOLE_METHOD_LIST(CONSOLE_BUILTIN_IMPLEMENTATION)
53 #undef CONSOLE_BUILTIN_IMPLEMENTATION
54
55 #undef CONSOLE_METHOD_LIST
56
57 } // namespace internal
58 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698