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

Unified Diff: src/factory.h

Issue 1322883002: Make isolate.h usable without objects-inl.h header. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-frames-2
Patch Set: Rebased. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 6e8f950e9ac27b6ab81420b0c45500db44c977fc..375c0bd3bf76f5c859be18e64d1e0dbbf2e20153 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -557,21 +557,17 @@ class Factory final {
Handle<Object> arg1 = Handle<Object>(),
Handle<Object> arg2 = Handle<Object>());
-#define DEFINE_ERROR(NAME, name) \
- Handle<Object> New##NAME(MessageTemplate::Template template_index, \
- Handle<Object> arg0 = Handle<Object>(), \
- Handle<Object> arg1 = Handle<Object>(), \
- Handle<Object> arg2 = Handle<Object>()) { \
- return NewError(isolate()->name##_function(), template_index, arg0, arg1, \
- arg2); \
- }
-
- DEFINE_ERROR(Error, error)
- DEFINE_ERROR(EvalError, eval_error)
- DEFINE_ERROR(RangeError, range_error)
- DEFINE_ERROR(ReferenceError, reference_error)
- DEFINE_ERROR(SyntaxError, syntax_error)
- DEFINE_ERROR(TypeError, type_error)
+#define DECLARE_ERROR(NAME) \
+ Handle<Object> New##NAME(MessageTemplate::Template template_index, \
+ Handle<Object> arg0 = Handle<Object>(), \
+ Handle<Object> arg1 = Handle<Object>(), \
+ Handle<Object> arg2 = Handle<Object>());
+ DECLARE_ERROR(Error)
+ DECLARE_ERROR(EvalError)
+ DECLARE_ERROR(RangeError)
+ DECLARE_ERROR(ReferenceError)
+ DECLARE_ERROR(SyntaxError)
+ DECLARE_ERROR(TypeError)
#undef DEFINE_ERROR
Handle<String> NumberToString(Handle<Object> number,
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698