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

Side by Side Diff: src/api.h

Issue 2526703002: [wasm] [asmjs] Route asm.js warnings to the dev console. (Closed)
Patch Set: fix 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
« include/v8.h ('K') | « include/v8.h ('k') | src/api.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 // 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/debug/debug-interface.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 class Utils { 115 class Utils {
116 public: 116 public:
117 static inline bool ApiCheck(bool condition, 117 static inline bool ApiCheck(bool condition,
118 const char* location, 118 const char* location,
119 const char* message) { 119 const char* message) {
120 if (!condition) Utils::ReportApiFailure(location, message); 120 if (!condition) Utils::ReportApiFailure(location, message);
121 return condition; 121 return condition;
122 } 122 }
123 static void ReportOOMFailure(const char* location, bool is_heap_oom); 123 static void ReportOOMFailure(const char* location, bool is_heap_oom);
124 static void ReportAsmJsWarning(i::Handle<i::JSMessageObject> message);
124 125
125 static inline Local<Context> ToLocal( 126 static inline Local<Context> ToLocal(
126 v8::internal::Handle<v8::internal::Context> obj); 127 v8::internal::Handle<v8::internal::Context> obj);
127 static inline Local<Value> ToLocal( 128 static inline Local<Value> ToLocal(
128 v8::internal::Handle<v8::internal::Object> obj); 129 v8::internal::Handle<v8::internal::Object> obj);
129 static inline Local<Module> ToLocal( 130 static inline Local<Module> ToLocal(
130 v8::internal::Handle<v8::internal::Module> obj); 131 v8::internal::Handle<v8::internal::Module> obj);
131 static inline Local<Name> ToLocal( 132 static inline Local<Name> ToLocal(
132 v8::internal::Handle<v8::internal::Name> obj); 133 v8::internal::Handle<v8::internal::Name> obj);
133 static inline Local<String> ToLocal( 134 static inline Local<String> ToLocal(
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 } 665 }
665 666
666 private: 667 private:
667 static v8::Testing::StressType stress_type_; 668 static v8::Testing::StressType stress_type_;
668 }; 669 };
669 670
670 } // namespace internal 671 } // namespace internal
671 } // namespace v8 672 } // namespace v8
672 673
673 #endif // V8_API_H_ 674 #endif // V8_API_H_
OLDNEW
« include/v8.h ('K') | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698