Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Side by Side Diff: Source/bindings/core/v8/ScriptDebugServer.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/v8/NPV8Object.cpp ('k') | Source/bindings/core/v8/ScriptProfiler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/NPV8Object.cpp ('k') | Source/bindings/core/v8/ScriptProfiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698