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

Side by Side Diff: src/api.h

Issue 2449213002: [inspector] migrate scriptParsed and getCompiledScripts to native (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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 | « no previous file | src/api.cc » ('j') | src/inspector/v8-debugger-script.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_API_H_ 5 #ifndef V8_API_H_
6 #define V8_API_H_ 6 #define V8_API_H_
7 7
8 #include "include/v8-testing.h" 8 #include "include/v8-testing.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/debug/debug-interface.h"
10 #include "src/factory.h" 11 #include "src/factory.h"
11 #include "src/isolate.h" 12 #include "src/isolate.h"
12 #include "src/list.h" 13 #include "src/list.h"
13 #include "src/objects-inl.h" 14 #include "src/objects-inl.h"
14 15
15 namespace v8 { 16 namespace v8 {
16 17
17 // Constants used in the implementation of the API. The most natural thing 18 // Constants used in the implementation of the API. The most natural thing
18 // would usually be to place these with the classes that use them, but 19 // would usually be to place these with the classes that use them, but
19 // we want to keep them out of v8.h because it is an externally 20 // we want to keep them out of v8.h because it is an externally
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 V(Script, JSFunction) \ 102 V(Script, JSFunction) \
102 V(UnboundScript, SharedFunctionInfo) \ 103 V(UnboundScript, SharedFunctionInfo) \
103 V(Module, Module) \ 104 V(Module, Module) \
104 V(Function, JSReceiver) \ 105 V(Function, JSReceiver) \
105 V(Message, JSMessageObject) \ 106 V(Message, JSMessageObject) \
106 V(Context, Context) \ 107 V(Context, Context) \
107 V(External, Object) \ 108 V(External, Object) \
108 V(StackTrace, JSArray) \ 109 V(StackTrace, JSArray) \
109 V(StackFrame, JSObject) \ 110 V(StackFrame, JSObject) \
110 V(Proxy, JSProxy) \ 111 V(Proxy, JSProxy) \
111 V(NativeWeakMap, JSWeakMap) 112 V(NativeWeakMap, JSWeakMap) \
113 V(DebugInterface::Script, Script)
112 114
113 class Utils { 115 class Utils {
114 public: 116 public:
115 static inline bool ApiCheck(bool condition, 117 static inline bool ApiCheck(bool condition,
116 const char* location, 118 const char* location,
117 const char* message) { 119 const char* message) {
118 if (!condition) Utils::ReportApiFailure(location, message); 120 if (!condition) Utils::ReportApiFailure(location, message);
119 return condition; 121 return condition;
120 } 122 }
121 static void ReportOOMFailure(const char* location, bool is_heap_oom); 123 static void ReportOOMFailure(const char* location, bool is_heap_oom);
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 } 664 }
663 665
664 private: 666 private:
665 static v8::Testing::StressType stress_type_; 667 static v8::Testing::StressType stress_type_;
666 }; 668 };
667 669
668 } // namespace internal 670 } // namespace internal
669 } // namespace v8 671 } // namespace v8
670 672
671 #endif // V8_API_H_ 673 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/inspector/v8-debugger-script.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698