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

Side by Side Diff: src/debug.cc

Issue 14638003: deprecate WriteAscii and MayContainNonAscii (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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') | test/cctest/test-api.cc » ('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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 memset(registers_, 0, sizeof(JSCallerSavedBuffer)); 69 memset(registers_, 0, sizeof(JSCallerSavedBuffer));
70 } 70 }
71 71
72 72
73 Debug::~Debug() { 73 Debug::~Debug() {
74 } 74 }
75 75
76 76
77 static void PrintLn(v8::Local<v8::Value> value) { 77 static void PrintLn(v8::Local<v8::Value> value) {
78 v8::Local<v8::String> s = value->ToString(); 78 v8::Local<v8::String> s = value->ToString();
79 ScopedVector<char> data(s->Length() + 1); 79 ScopedVector<char> data(s->Utf8Length() + 1);
80 if (data.start() == NULL) { 80 if (data.start() == NULL) {
81 V8::FatalProcessOutOfMemory("PrintLn"); 81 V8::FatalProcessOutOfMemory("PrintLn");
82 return; 82 return;
83 } 83 }
84 s->WriteAscii(data.start()); 84 s->WriteUtf8(data.start());
85 PrintF("%s\n", data.start()); 85 PrintF("%s\n", data.start());
86 } 86 }
87 87
88 88
89 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc, Code::Kind kind) { 89 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc, Code::Kind kind) {
90 Isolate* isolate = Isolate::Current(); 90 Isolate* isolate = Isolate::Current();
91 return isolate->stub_cache()->ComputeCallDebugPrepareStepIn(argc, kind); 91 return isolate->stub_cache()->ComputeCallDebugPrepareStepIn(argc, kind);
92 } 92 }
93 93
94 94
(...skipping 3703 matching lines...) Expand 10 before | Expand all | Expand 10 after
3798 { 3798 {
3799 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); 3799 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_));
3800 isolate_->debugger()->CallMessageDispatchHandler(); 3800 isolate_->debugger()->CallMessageDispatchHandler();
3801 } 3801 }
3802 } 3802 }
3803 } 3803 }
3804 3804
3805 #endif // ENABLE_DEBUGGER_SUPPORT 3805 #endif // ENABLE_DEBUGGER_SUPPORT
3806 3806
3807 } } // namespace v8::internal 3807 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698