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

Side by Side Diff: src/liveedit.cc

Issue 559913002: Rename ascii to one-byte where applicable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/liveedit.h" 8 #include "src/liveedit.h"
9 9
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 868
869 isolate->clear_pending_message(); 869 isolate->clear_pending_message();
870 isolate->clear_pending_exception(); 870 isolate->clear_pending_exception();
871 871
872 // If possible, copy positions from message object to exception object. 872 // If possible, copy positions from message object to exception object.
873 if (exception->IsJSObject() && !message_location.script().is_null()) { 873 if (exception->IsJSObject() && !message_location.script().is_null()) {
874 rethrow_exception = Handle<JSObject>::cast(exception); 874 rethrow_exception = Handle<JSObject>::cast(exception);
875 875
876 Factory* factory = isolate->factory(); 876 Factory* factory = isolate->factory();
877 Handle<String> start_pos_key = factory->InternalizeOneByteString( 877 Handle<String> start_pos_key = factory->InternalizeOneByteString(
878 STATIC_ASCII_VECTOR("startPosition")); 878 STATIC_CHAR_VECTOR("startPosition"));
879 Handle<String> end_pos_key = factory->InternalizeOneByteString( 879 Handle<String> end_pos_key =
880 STATIC_ASCII_VECTOR("endPosition")); 880 factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("endPosition"));
881 Handle<String> script_obj_key = factory->InternalizeOneByteString( 881 Handle<String> script_obj_key =
882 STATIC_ASCII_VECTOR("scriptObject")); 882 factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("scriptObject"));
883 Handle<Smi> start_pos( 883 Handle<Smi> start_pos(
884 Smi::FromInt(message_location.start_pos()), isolate); 884 Smi::FromInt(message_location.start_pos()), isolate);
885 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate); 885 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate);
886 Handle<JSObject> script_obj = 886 Handle<JSObject> script_obj =
887 Script::GetWrapper(message_location.script()); 887 Script::GetWrapper(message_location.script());
888 Object::SetProperty(rethrow_exception, start_pos_key, start_pos, SLOPPY) 888 Object::SetProperty(rethrow_exception, start_pos_key, start_pos, SLOPPY)
889 .Assert(); 889 .Assert();
890 Object::SetProperty(rethrow_exception, end_pos_key, end_pos, SLOPPY) 890 Object::SetProperty(rethrow_exception, end_pos_key, end_pos, SLOPPY)
891 .Assert(); 891 .Assert();
892 Object::SetProperty(rethrow_exception, script_obj_key, script_obj, SLOPPY) 892 Object::SetProperty(rethrow_exception, script_obj_key, script_obj, SLOPPY)
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { 2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) {
2079 isolate_->active_function_info_listener()->FunctionCode(code); 2079 isolate_->active_function_info_listener()->FunctionCode(code);
2080 } 2080 }
2081 2081
2082 2082
2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2084 return isolate->active_function_info_listener() != NULL; 2084 return isolate->active_function_info_listener() != NULL;
2085 } 2085 }
2086 2086
2087 } } // namespace v8::internal 2087 } } // namespace v8::internal
OLDNEW
« src/jsregexp.cc ('K') | « src/jsregexp.cc ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698