| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 throwTypeError(isolate); | 505 throwTypeError(isolate); |
| 506 return v8Undefined(); | 506 return v8Undefined(); |
| 507 } | 507 } |
| 508 | 508 |
| 509 V8TRYCATCH(uint32_t, sequenceLength, lengthValue->Int32Value()); | 509 V8TRYCATCH(uint32_t, sequenceLength, lengthValue->Int32Value()); |
| 510 length = sequenceLength; | 510 length = sequenceLength; |
| 511 | 511 |
| 512 return v8Value; | 512 return v8Value; |
| 513 } | 513 } |
| 514 | 514 |
| 515 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>); | 515 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*); |
| 516 | 516 |
| 517 inline bool isUndefinedOrNull(v8::Handle<v8::Value> value) | 517 inline bool isUndefinedOrNull(v8::Handle<v8::Value> value) |
| 518 { | 518 { |
| 519 return value->IsNull() || value->IsUndefined(); | 519 return value->IsNull() || value->IsUndefined(); |
| 520 } | 520 } |
| 521 | 521 |
| 522 // Returns true if the provided object is to be considered a 'host object',
as used in the | 522 // Returns true if the provided object is to be considered a 'host object',
as used in the |
| 523 // HTML5 structured clone algorithm. | 523 // HTML5 structured clone algorithm. |
| 524 inline bool isHostObject(v8::Handle<v8::Object> object) | 524 inline bool isHostObject(v8::Handle<v8::Object> object) |
| 525 { | 525 { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment) | 621 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function,
v8::Handle<v8::Value> environment) |
| 622 { | 622 { |
| 623 return v8::FunctionTemplate::New(function, environment)->GetFunction(); | 623 return v8::FunctionTemplate::New(function, environment)->GetFunction(); |
| 624 } | 624 } |
| 625 | 625 |
| 626 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String> key); | 626 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script
Wrappable*, v8::Handle<v8::String> key); |
| 627 | 627 |
| 628 } // namespace WebCore | 628 } // namespace WebCore |
| 629 | 629 |
| 630 #endif // V8Binding_h | 630 #endif // V8Binding_h |
| OLD | NEW |