| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 SetProperty(stackFrame, script_key, script_name, NONE); | 385 SetProperty(stackFrame, script_key, script_name, NONE); |
| 386 } | 386 } |
| 387 | 387 |
| 388 if (options & StackTrace::kScriptNameOrSourceURL) { | 388 if (options & StackTrace::kScriptNameOrSourceURL) { |
| 389 Handle<Object> script_name(script->name()); | 389 Handle<Object> script_name(script->name()); |
| 390 Handle<String> method_name = | 390 Handle<String> method_name = |
| 391 Factory::LookupAsciiSymbol("nameOrSourceURL"); | 391 Factory::LookupAsciiSymbol("nameOrSourceURL"); |
| 392 Handle<JSValue> script_wrapper = GetScriptWrapper(Handle<Script>(script)); | 392 Handle<JSValue> script_wrapper = GetScriptWrapper(Handle<Script>(script)); |
| 393 Handle<Object> property = GetProperty(script_wrapper, method_name); | 393 Handle<Object> property = GetProperty(script_wrapper, method_name); |
| 394 ASSERT(property->IsJSFunction()); | 394 ASSERT(property->IsJSFunction()); |
| 395 Handle<JSFunction> method = Handle<JSFunction>::cast(property); | 395 Handle<JSFunction> method = Handle<JSFunction>::cast(property); |
| 396 bool caught_exception; | 396 bool caught_exception; |
| 397 Handle<Object> result = Execution::TryCall(method, script_wrapper, 0, | 397 Handle<Object> result = Execution::TryCall(method, script_wrapper, 0, |
| 398 NULL, &caught_exception); | 398 NULL, &caught_exception); |
| 399 if (caught_exception) { | 399 if (caught_exception) { |
| 400 result = Factory::undefined_value(); | 400 result = Factory::undefined_value(); |
| 401 } | 401 } |
| 402 Handle<String> script_name_or_source_url_key = | 402 Handle<String> script_name_or_source_url_key = |
| 403 Factory::LookupAsciiSymbol("scriptNameOrSourceURL"); | 403 Factory::LookupAsciiSymbol("scriptNameOrSourceURL"); |
| 404 SetProperty(stackFrame, script_name_or_source_url_key, result, NONE); | 404 SetProperty(stackFrame, script_name_or_source_url_key, result, NONE); |
| 405 } | 405 } |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 Top::break_access_->Lock(); | 1039 Top::break_access_->Lock(); |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 | 1042 |
| 1043 ExecutionAccess::~ExecutionAccess() { | 1043 ExecutionAccess::~ExecutionAccess() { |
| 1044 Top::break_access_->Unlock(); | 1044 Top::break_access_->Unlock(); |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 | 1047 |
| 1048 } } // namespace v8::internal | 1048 } } // namespace v8::internal |
| OLD | NEW |