| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |