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

Unified Diff: src/extensions/trigger-failure-extension.h

Issue 112863002: Merge bleeding_edge 18021:18297 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | src/extensions/trigger-failure-extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/trigger-failure-extension.h
diff --git a/src/extensions/externalize-string-extension.h b/src/extensions/trigger-failure-extension.h
similarity index 70%
copy from src/extensions/externalize-string-extension.h
copy to src/extensions/trigger-failure-extension.h
index ecbc1cf447c47ac5c99262371c0950b7eae35267..5a4223f1d27f447fdb9994930a0edc1524b4e7ca 100644
--- a/src/extensions/externalize-string-extension.h
+++ b/src/extensions/trigger-failure-extension.h
@@ -1,4 +1,4 @@
-// Copyright 2010 the V8 project authors. All rights reserved.
+// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,26 +25,32 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef V8_EXTENSIONS_EXTERNALIZE_STRING_EXTENSION_H_
-#define V8_EXTENSIONS_EXTERNALIZE_STRING_EXTENSION_H_
+#ifndef V8_EXTENSIONS_TRIGGER_FAILURE_EXTENSION_H_
+#define V8_EXTENSIONS_TRIGGER_FAILURE_EXTENSION_H_
#include "v8.h"
namespace v8 {
namespace internal {
-class ExternalizeStringExtension : public v8::Extension {
+class TriggerFailureExtension : public v8::Extension {
public:
- ExternalizeStringExtension() : v8::Extension("v8/externalize", kSource) {}
- virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
+ TriggerFailureExtension() : v8::Extension("v8/trigger-failure", kSource) {}
+ virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
+ v8::Isolate* isolate,
v8::Handle<v8::String> name);
- static void Externalize(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void IsAscii(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void TriggerCheckFalse(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void TriggerAssertFalse(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void TriggerSlowAssertFalse(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
static void Register();
+
private:
static const char* const kSource;
};
} } // namespace v8::internal
-#endif // V8_EXTENSIONS_EXTERNALIZE_STRING_EXTENSION_H_
+#endif // V8_EXTENSIONS_TRIGGER_FAILURE_EXTENSION_H_
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | src/extensions/trigger-failure-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698