| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "wtf/text/StringHash.h" | 65 #include "wtf/text/StringHash.h" |
| 66 #include "wtf/text/WTFString.h" | 66 #include "wtf/text/WTFString.h" |
| 67 | 67 |
| 68 namespace WebCore { | 68 namespace WebCore { |
| 69 | 69 |
| 70 v8::Handle<v8::Value> setDOMException(int exceptionCode, v8::Isolate* isolate) | 70 v8::Handle<v8::Value> setDOMException(int exceptionCode, v8::Isolate* isolate) |
| 71 { | 71 { |
| 72 return V8ThrowException::throwDOMException(exceptionCode, isolate); | 72 return V8ThrowException::throwDOMException(exceptionCode, isolate); |
| 73 } | 73 } |
| 74 | 74 |
| 75 v8::Handle<v8::Value> setDOMException(int exceptionCode, const char* message, v8
::Isolate* isolate) |
| 76 { |
| 77 return V8ThrowException::throwDOMException(exceptionCode, message, isolate); |
| 78 } |
| 79 |
| 75 v8::Handle<v8::Value> throwError(V8ErrorType errorType, const char* message, v8:
:Isolate* isolate) | 80 v8::Handle<v8::Value> throwError(V8ErrorType errorType, const char* message, v8:
:Isolate* isolate) |
| 76 { | 81 { |
| 77 return V8ThrowException::throwError(errorType, message, isolate); | 82 return V8ThrowException::throwError(errorType, message, isolate); |
| 78 } | 83 } |
| 79 | 84 |
| 80 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value> exception, v8::Isolate* i
solate) | 85 v8::Handle<v8::Value> throwError(v8::Handle<v8::Value> exception, v8::Isolate* i
solate) |
| 81 { | 86 { |
| 82 return V8ThrowException::throwError(exception, isolate); | 87 return V8ThrowException::throwError(exception, isolate); |
| 83 } | 88 } |
| 84 | 89 |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 542 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 538 if (data->workerDOMDataStore()) | 543 if (data->workerDOMDataStore()) |
| 539 return 0; | 544 return 0; |
| 540 if (!DOMWrapperWorld::isolatedWorldsExist()) | 545 if (!DOMWrapperWorld::isolatedWorldsExist()) |
| 541 return 0; | 546 return 0; |
| 542 ASSERT(!v8::Context::GetEntered().IsEmpty()); | 547 ASSERT(!v8::Context::GetEntered().IsEmpty()); |
| 543 return DOMWrapperWorld::isolatedWorld(v8::Context::GetEntered()); | 548 return DOMWrapperWorld::isolatedWorld(v8::Context::GetEntered()); |
| 544 } | 549 } |
| 545 | 550 |
| 546 } // namespace WebCore | 551 } // namespace WebCore |
| OLD | NEW |