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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 class XPathNSResolver; | 59 class XPathNSResolver; |
60 | 60 |
61 namespace TraceEvent { | 61 namespace TraceEvent { |
62 class ConvertableToTraceFormat; | 62 class ConvertableToTraceFormat; |
63 } | 63 } |
64 | 64 |
65 const int kMaxRecursionDepth = 22; | 65 const int kMaxRecursionDepth = 22; |
66 | 66 |
67 // Helpers for throwing JavaScript TypeErrors for arity mismatches. | 67 // Helpers for throwing JavaScript TypeErrors for arity mismatches. |
68 void setArityTypeError(ExceptionState&, const char* valid, unsigned provided); | 68 void setArityTypeError(ExceptionState&, const char* valid, unsigned provided); |
69 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co
nst char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8:
:Isolate*); | 69 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co
nst char* type, unsigned expected, unsigned provided, v8::Isolate*); |
70 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type,
unsigned expected, unsigned providedLeastNumMandatoryParams, v8::Isolate*); | 70 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type,
unsigned expected, unsigned provided, v8::Isolate*); |
71 void setMinimumArityTypeError(ExceptionState&, unsigned expected, unsigned provi
dedLeastNumMandatoryParams); | 71 void setMinimumArityTypeError(ExceptionState&, unsigned expected, unsigned provi
ded); |
72 | 72 |
73 v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator(); | 73 v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator(); |
74 | 74 |
75 template<typename CallbackInfo, typename V> | 75 template<typename CallbackInfo, typename V> |
76 inline void v8SetReturnValue(const CallbackInfo& info, V v) | 76 inline void v8SetReturnValue(const CallbackInfo& info, V v) |
77 { | 77 { |
78 info.GetReturnValue().Set(v); | 78 info.GetReturnValue().Set(v); |
79 } | 79 } |
80 | 80 |
81 template<typename CallbackInfo> | 81 template<typename CallbackInfo> |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 m_block.ReThrow(); | 956 m_block.ReThrow(); |
957 } | 957 } |
958 | 958 |
959 private: | 959 private: |
960 v8::TryCatch& m_block; | 960 v8::TryCatch& m_block; |
961 }; | 961 }; |
962 | 962 |
963 } // namespace blink | 963 } // namespace blink |
964 | 964 |
965 #endif // V8Binding_h | 965 #endif // V8Binding_h |
OLD | NEW |