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

Side by Side Diff: src/checks.cc

Issue 137963002: Various API-related simplifications. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: upload trouble Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/v8checks.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const char* value_source, 131 const char* value_source,
132 v8::Handle<v8::Value> value) { 132 v8::Handle<v8::Value> value) {
133 if (unexpected->Equals(value)) { 133 if (unexpected->Equals(value)) {
134 v8::String::Utf8Value value_str(value); 134 v8::String::Utf8Value value_str(value);
135 V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %s", 135 V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %s",
136 unexpected_source, value_source, *value_str); 136 unexpected_source, value_source, *value_str);
137 } 137 }
138 } 138 }
139 139
140 140
141 void API_Fatal(const char* location, const char* format, ...) {
142 i::OS::PrintError("\n#\n# Fatal error in %s\n# ", location);
143 va_list arguments;
144 va_start(arguments, format);
145 i::OS::VPrintError(format, arguments);
146 va_end(arguments);
147 i::OS::PrintError("\n#\n\n");
148 i::OS::Abort();
149 }
150
151
152 namespace v8 { namespace internal { 141 namespace v8 { namespace internal {
153 142
154 intptr_t HeapObjectTagMask() { return kHeapObjectTagMask; } 143 intptr_t HeapObjectTagMask() { return kHeapObjectTagMask; }
155 144
156 } } // namespace v8::internal 145 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/v8checks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698