| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 } | 950 } |
| 951 | 951 |
| 952 PassRefPtr<TracedValue> devToolsTraceEventData(v8::Isolate* isolate, ExecutionCo
ntext* context, v8::Local<v8::Function> function) | 952 PassRefPtr<TracedValue> devToolsTraceEventData(v8::Isolate* isolate, ExecutionCo
ntext* context, v8::Local<v8::Function> function) |
| 953 { | 953 { |
| 954 DevToolsFunctionInfo info(function); | 954 DevToolsFunctionInfo info(function); |
| 955 return InspectorFunctionCallEvent::data(context, info.scriptId(), info.resou
rceName(), info.lineNumber()); | 955 return InspectorFunctionCallEvent::data(context, info.scriptId(), info.resou
rceName(), info.lineNumber()); |
| 956 } | 956 } |
| 957 | 957 |
| 958 void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 958 void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 959 { | 959 { |
| 960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | |
| 961 v8::Local<v8::Value> data = info.Data(); | 960 v8::Local<v8::Value> data = info.Data(); |
| 962 ASSERT(data->IsExternal()); | 961 ASSERT(data->IsExternal()); |
| 963 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 962 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 964 if (!perContextData) | 963 if (!perContextData) |
| 965 return; | 964 return; |
| 966 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 965 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
| 968 } | 966 } |
| 969 | 967 |
| 970 } // namespace blink | 968 } // namespace blink |
| OLD | NEW |