| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 71   } | 71   } | 
| 72   Handle<JSArray> arguments_handle = | 72   Handle<JSArray> arguments_handle = | 
| 73       factory->NewJSArrayWithElements(arguments_elements); | 73       factory->NewJSArrayWithElements(arguments_elements); | 
| 74 | 74 | 
| 75   int start = 0; | 75   int start = 0; | 
| 76   int end = 0; | 76   int end = 0; | 
| 77   Handle<Object> script_handle = factory->undefined_value(); | 77   Handle<Object> script_handle = factory->undefined_value(); | 
| 78   if (loc) { | 78   if (loc) { | 
| 79     start = loc->start_pos(); | 79     start = loc->start_pos(); | 
| 80     end = loc->end_pos(); | 80     end = loc->end_pos(); | 
| 81     script_handle = GetScriptWrapper(loc->script()); | 81     script_handle = Script::GetWrapper(loc->script()); | 
| 82   } | 82   } | 
| 83 | 83 | 
| 84   Handle<Object> stack_frames_handle = stack_frames.is_null() | 84   Handle<Object> stack_frames_handle = stack_frames.is_null() | 
| 85       ? Handle<Object>::cast(factory->undefined_value()) | 85       ? Handle<Object>::cast(factory->undefined_value()) | 
| 86       : Handle<Object>::cast(stack_frames); | 86       : Handle<Object>::cast(stack_frames); | 
| 87 | 87 | 
| 88   Handle<JSMessageObject> message = | 88   Handle<JSMessageObject> message = | 
| 89       factory->NewJSMessageObject(type_handle, | 89       factory->NewJSMessageObject(type_handle, | 
| 90                                   arguments_handle, | 90                                   arguments_handle, | 
| 91                                   start, | 91                                   start, | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 179 | 179 | 
| 180 SmartArrayPointer<char> MessageHandler::GetLocalizedMessage( | 180 SmartArrayPointer<char> MessageHandler::GetLocalizedMessage( | 
| 181     Isolate* isolate, | 181     Isolate* isolate, | 
| 182     Handle<Object> data) { | 182     Handle<Object> data) { | 
| 183   HandleScope scope(isolate); | 183   HandleScope scope(isolate); | 
| 184   return GetMessage(isolate, data)->ToCString(DISALLOW_NULLS); | 184   return GetMessage(isolate, data)->ToCString(DISALLOW_NULLS); | 
| 185 } | 185 } | 
| 186 | 186 | 
| 187 | 187 | 
| 188 } }  // namespace v8::internal | 188 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|