| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 PrintF(stderr, | 1355 PrintF(stderr, |
| 1356 "%s\n\nFROM\n", | 1356 "%s\n\nFROM\n", |
| 1357 *MessageHandler::GetLocalizedMessage(this, message_obj)); | 1357 *MessageHandler::GetLocalizedMessage(this, message_obj)); |
| 1358 PrintCurrentStackTrace(stderr); | 1358 PrintCurrentStackTrace(stderr); |
| 1359 OS::Abort(); | 1359 OS::Abort(); |
| 1360 } | 1360 } |
| 1361 } else if (location != NULL && !location->script().is_null()) { | 1361 } else if (location != NULL && !location->script().is_null()) { |
| 1362 // We are bootstrapping and caught an error where the location is set | 1362 // We are bootstrapping and caught an error where the location is set |
| 1363 // and we have a script for the location. | 1363 // and we have a script for the location. |
| 1364 // In this case we could have an extension (or an internal error | 1364 // In this case we could have an extension (or an internal error |
| 1365 // somewhere) and we print out the line number at which the error occured | 1365 // somewhere) and we print out the line number at which the error occurred |
| 1366 // to the console for easier debugging. | 1366 // to the console for easier debugging. |
| 1367 int line_number = GetScriptLineNumberSafe(location->script(), | 1367 int line_number = GetScriptLineNumberSafe(location->script(), |
| 1368 location->start_pos()); | 1368 location->start_pos()); |
| 1369 if (exception->IsString()) { | 1369 if (exception->IsString()) { |
| 1370 OS::PrintError( | 1370 OS::PrintError( |
| 1371 "Extension or internal compilation error: %s in %s at line %d.\n", | 1371 "Extension or internal compilation error: %s in %s at line %d.\n", |
| 1372 *String::cast(exception)->ToCString(), | 1372 *String::cast(exception)->ToCString(), |
| 1373 *String::cast(location->script()->name())->ToCString(), | 1373 *String::cast(location->script()->name())->ToCString(), |
| 1374 line_number + 1); | 1374 line_number + 1); |
| 1375 } else { | 1375 } else { |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2451 | 2451 |
| 2452 #ifdef DEBUG | 2452 #ifdef DEBUG |
| 2453 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2453 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2454 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2454 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2455 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2455 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2456 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2456 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2457 #undef ISOLATE_FIELD_OFFSET | 2457 #undef ISOLATE_FIELD_OFFSET |
| 2458 #endif | 2458 #endif |
| 2459 | 2459 |
| 2460 } } // namespace v8::internal | 2460 } } // namespace v8::internal |
| OLD | NEW |