OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-2011 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 if (result->IsInt32()) | 321 if (result->IsInt32()) |
322 return result->Int32Value(); | 322 return result->Int32Value(); |
323 return 0; | 323 return 0; |
324 } | 324 } |
325 | 325 |
326 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> ScriptDebugServer::toJavaScriptCallF
rameUnsafe(const ScriptValue& value) | 326 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> ScriptDebugServer::toJavaScriptCallF
rameUnsafe(const ScriptValue& value) |
327 { | 327 { |
328 if (value.isEmpty()) | 328 if (value.isEmpty()) |
329 return nullptr; | 329 return nullptr; |
330 ASSERT(value.isObject()); | 330 ASSERT(value.isObject()); |
331 return V8JavaScriptCallFrame::toNative(v8::Handle<v8::Object>::Cast(value.v8
ValueUnsafe())); | 331 return V8JavaScriptCallFrame::toImpl(v8::Handle<v8::Object>::Cast(value.v8Va
lueUnsafe())); |
332 } | 332 } |
333 | 333 |
334 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> ScriptDebugServer::wrapCallFrames(in
t maximumLimit, ScopeInfoDetails scopeDetails) | 334 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> ScriptDebugServer::wrapCallFrames(in
t maximumLimit, ScopeInfoDetails scopeDetails) |
335 { | 335 { |
336 const int scopeBits = 2; | 336 const int scopeBits = 2; |
337 COMPILE_ASSERT(NoScopes < (1 << scopeBits), not_enough_bits_to_encode_ScopeI
nfoDetails); | 337 COMPILE_ASSERT(NoScopes < (1 << scopeBits), not_enough_bits_to_encode_ScopeI
nfoDetails); |
338 | 338 |
339 ASSERT(maximumLimit >= 0); | 339 ASSERT(maximumLimit >= 0); |
340 int data = (maximumLimit << scopeBits) | scopeDetails; | 340 int data = (maximumLimit << scopeBits) | scopeDetails; |
341 v8::Handle<v8::Value> currentCallFrameV8; | 341 v8::Handle<v8::Value> currentCallFrameV8; |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 { | 707 { |
708 return PassOwnPtr<ScriptSourceCode>(); | 708 return PassOwnPtr<ScriptSourceCode>(); |
709 } | 709 } |
710 | 710 |
711 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou
rce, const String& url, const String& functionName) | 711 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou
rce, const String& url, const String& functionName) |
712 { | 712 { |
713 return source; | 713 return source; |
714 } | 714 } |
715 | 715 |
716 } // namespace blink | 716 } // namespace blink |
OLD | NEW |