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

Side by Side Diff: src/isolate.cc

Issue 11818025: Continues Latin-1 support. All tests pass with ENABLE_LATIN_1 flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM fix Created 7 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
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 529 }
530 } 530 }
531 531
532 532
533 void Isolate::PushStackTraceAndDie(unsigned int magic, 533 void Isolate::PushStackTraceAndDie(unsigned int magic,
534 Object* object, 534 Object* object,
535 Map* map, 535 Map* map,
536 unsigned int magic2) { 536 unsigned int magic2) {
537 const int kMaxStackTraceSize = 8192; 537 const int kMaxStackTraceSize = 8192;
538 Handle<String> trace = StackTraceString(); 538 Handle<String> trace = StackTraceString();
539 char buffer[kMaxStackTraceSize]; 539 uint8_t buffer[kMaxStackTraceSize];
540 int length = Min(kMaxStackTraceSize - 1, trace->length()); 540 int length = Min(kMaxStackTraceSize - 1, trace->length());
541 String::WriteToFlat(*trace, buffer, 0, length); 541 String::WriteToFlat(*trace, buffer, 0, length);
542 buffer[length] = '\0'; 542 buffer[length] = '\0';
543 // TODO(dcarney): convert buffer to utf8?
Yang 2013/01/09 15:39:30 I don't think correct utf8 output is a priority he
543 OS::PrintError("Stacktrace (%x-%x) %p %p: %s\n", 544 OS::PrintError("Stacktrace (%x-%x) %p %p: %s\n",
544 magic, magic2, 545 magic, magic2,
545 static_cast<void*>(object), static_cast<void*>(map), 546 static_cast<void*>(object), static_cast<void*>(map),
546 buffer); 547 reinterpret_cast<char*>(buffer));
547 OS::Abort(); 548 OS::Abort();
548 } 549 }
549 550
550 551
551 // Determines whether the given stack frame should be displayed in 552 // Determines whether the given stack frame should be displayed in
552 // a stack trace. The caller is the error constructor that asked 553 // a stack trace. The caller is the error constructor that asked
553 // for the stack trace to be collected. The first time a construct 554 // for the stack trace to be collected. The first time a construct
554 // call to this function is encountered it is skipped. The seen_caller 555 // call to this function is encountered it is skipped. The seen_caller
555 // in/out parameter is used to remember if the caller has been seen 556 // in/out parameter is used to remember if the caller has been seen
556 // yet. 557 // yet.
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 2211
2211 #ifdef DEBUG 2212 #ifdef DEBUG
2212 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2213 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2213 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2214 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2214 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2215 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2215 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2216 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2216 #undef ISOLATE_FIELD_OFFSET 2217 #undef ISOLATE_FIELD_OFFSET
2217 #endif 2218 #endif
2218 2219
2219 } } // namespace v8::internal 2220 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/interpreter-irregexp.cc ('k') | src/json-parser.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698