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

Side by Side Diff: src/isolate.cc

Issue 148573005: A64: Synchronize with r16249. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/ic.cc ('k') | src/lithium.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 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 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 OS::Abort(); 1395 OS::Abort();
1396 } 1396 }
1397 } else if (location != NULL && !location->script().is_null()) { 1397 } else if (location != NULL && !location->script().is_null()) {
1398 // We are bootstrapping and caught an error where the location is set 1398 // We are bootstrapping and caught an error where the location is set
1399 // and we have a script for the location. 1399 // and we have a script for the location.
1400 // In this case we could have an extension (or an internal error 1400 // In this case we could have an extension (or an internal error
1401 // somewhere) and we print out the line number at which the error occured 1401 // somewhere) and we print out the line number at which the error occured
1402 // to the console for easier debugging. 1402 // to the console for easier debugging.
1403 int line_number = GetScriptLineNumberSafe(location->script(), 1403 int line_number = GetScriptLineNumberSafe(location->script(),
1404 location->start_pos()); 1404 location->start_pos());
1405 if (exception->IsString()) { 1405 if (exception->IsString() && location->script()->name()->IsString()) {
1406 OS::PrintError( 1406 OS::PrintError(
1407 "Extension or internal compilation error: %s in %s at line %d.\n", 1407 "Extension or internal compilation error: %s in %s at line %d.\n",
1408 *String::cast(exception)->ToCString(), 1408 *String::cast(exception)->ToCString(),
1409 *String::cast(location->script()->name())->ToCString(), 1409 *String::cast(location->script()->name())->ToCString(),
1410 line_number + 1); 1410 line_number + 1);
1411 } else { 1411 } else if (location->script()->name()->IsString()) {
1412 OS::PrintError( 1412 OS::PrintError(
1413 "Extension or internal compilation error in %s at line %d.\n", 1413 "Extension or internal compilation error in %s at line %d.\n",
1414 *String::cast(location->script()->name())->ToCString(), 1414 *String::cast(location->script()->name())->ToCString(),
1415 line_number + 1); 1415 line_number + 1);
1416 } else {
1417 OS::PrintError("Extension or internal compilation error.\n");
1416 } 1418 }
1417 } 1419 }
1418 } 1420 }
1419 1421
1420 // Save the message for reporting if the the exception remains uncaught. 1422 // Save the message for reporting if the the exception remains uncaught.
1421 thread_local_top()->has_pending_message_ = report_exception; 1423 thread_local_top()->has_pending_message_ = report_exception;
1422 1424
1423 // Do not forget to clean catcher_ if currently thrown exception cannot 1425 // Do not forget to clean catcher_ if currently thrown exception cannot
1424 // be caught. If necessary, ReThrow will update the catcher. 1426 // be caught. If necessary, ReThrow will update the catcher.
1425 thread_local_top()->catcher_ = can_be_caught_externally ? 1427 thread_local_top()->catcher_ = can_be_caught_externally ?
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2530 2532
2531 #ifdef DEBUG 2533 #ifdef DEBUG
2532 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2534 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2533 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2535 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2534 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2536 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2535 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2537 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2536 #undef ISOLATE_FIELD_OFFSET 2538 #undef ISOLATE_FIELD_OFFSET
2537 #endif 2539 #endif
2538 2540
2539 } } // namespace v8::internal 2541 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698