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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class ExecutionContext; | 55 class ExecutionContext; |
56 class ExceptionState; | 56 class ExceptionState; |
57 class LocalFrame; | 57 class LocalFrame; |
58 class NodeFilter; | 58 class NodeFilter; |
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; | |
66 | |
67 // Helpers for throwing JavaScript TypeErrors for arity mismatches. | 65 // Helpers for throwing JavaScript TypeErrors for arity mismatches. |
68 void setArityTypeError(ExceptionState&, const char* valid, unsigned provided); | 66 void setArityTypeError(ExceptionState&, const char* valid, unsigned provided); |
69 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co
nst char* type, unsigned expected, unsigned provided, v8::Isolate*); | 67 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 provided, v8::Isolate*); | 68 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type,
unsigned expected, unsigned provided, v8::Isolate*); |
71 void setMinimumArityTypeError(ExceptionState&, unsigned expected, unsigned provi
ded); | 69 void setMinimumArityTypeError(ExceptionState&, unsigned expected, unsigned provi
ded); |
72 | 70 |
73 v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator(); | 71 v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator(); |
74 | 72 |
75 template<typename CallbackInfo, typename V> | 73 template<typename CallbackInfo, typename V> |
76 inline void v8SetReturnValue(const CallbackInfo& info, V v) | 74 inline void v8SetReturnValue(const CallbackInfo& info, V v) |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 m_block.ReThrow(); | 954 m_block.ReThrow(); |
957 } | 955 } |
958 | 956 |
959 private: | 957 private: |
960 v8::TryCatch& m_block; | 958 v8::TryCatch& m_block; |
961 }; | 959 }; |
962 | 960 |
963 } // namespace blink | 961 } // namespace blink |
964 | 962 |
965 #endif // V8Binding_h | 963 #endif // V8Binding_h |
OLD | NEW |