| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 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 24 matching lines...) Expand all Loading... |
| 35 #include "bindings/core/v8/V8Binding.h" | 35 #include "bindings/core/v8/V8Binding.h" |
| 36 #include "core/inspector/InspectorInstrumentation.h" | 36 #include "core/inspector/InspectorInstrumentation.h" |
| 37 #include "core/inspector/ScriptArguments.h" | 37 #include "core/inspector/ScriptArguments.h" |
| 38 #include "core/inspector/ScriptCallFrame.h" | 38 #include "core/inspector/ScriptCallFrame.h" |
| 39 #include "core/inspector/ScriptCallStack.h" | 39 #include "core/inspector/ScriptCallStack.h" |
| 40 #include "platform/JSONValues.h" | 40 #include "platform/JSONValues.h" |
| 41 #include "wtf/text/StringBuilder.h" | 41 #include "wtf/text/StringBuilder.h" |
| 42 | 42 |
| 43 #include <v8-debug.h> | 43 #include <v8-debug.h> |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 class ExecutionContext; | 47 class ExecutionContext; |
| 48 | 48 |
| 49 static ScriptCallFrame toScriptCallFrame(v8::Handle<v8::StackFrame> frame) | 49 static ScriptCallFrame toScriptCallFrame(v8::Handle<v8::StackFrame> frame) |
| 50 { | 50 { |
| 51 StringBuilder stringBuilder; | 51 StringBuilder stringBuilder; |
| 52 stringBuilder.appendNumber(frame->GetScriptId()); | 52 stringBuilder.appendNumber(frame->GetScriptId()); |
| 53 String scriptId = stringBuilder.toString(); | 53 String scriptId = stringBuilder.toString(); |
| 54 String sourceName; | 54 String sourceName; |
| 55 v8::Local<v8::String> sourceNameValue(frame->GetScriptNameOrSourceURL()); | 55 v8::Local<v8::String> sourceNameValue(frame->GetScriptNameOrSourceURL()); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 PassRefPtrWillBeRawPtr<ScriptArguments> createScriptArguments(ScriptState* scrip
tState, const v8::FunctionCallbackInfo<v8::Value>& v8arguments, unsigned skipArg
umentCount) | 124 PassRefPtrWillBeRawPtr<ScriptArguments> createScriptArguments(ScriptState* scrip
tState, const v8::FunctionCallbackInfo<v8::Value>& v8arguments, unsigned skipArg
umentCount) |
| 125 { | 125 { |
| 126 Vector<ScriptValue> arguments; | 126 Vector<ScriptValue> arguments; |
| 127 for (int i = skipArgumentCount; i < v8arguments.Length(); ++i) | 127 for (int i = skipArgumentCount; i < v8arguments.Length(); ++i) |
| 128 arguments.append(ScriptValue(scriptState, v8arguments[i])); | 128 arguments.append(ScriptValue(scriptState, v8arguments[i])); |
| 129 | 129 |
| 130 return ScriptArguments::create(scriptState, arguments); | 130 return ScriptArguments::create(scriptState, arguments); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace WebCore | 133 } // namespace blink |
| OLD | NEW |