v8/test/inspector/runtime
Alexey Kozyatinskiy 701d79d08a [inspector] introduced console.context
console.context(name:string) method returns console instance, this console instance fully implements console interface (including fact that any method can be called without console as receiver).
Protocol.Runtime.consoleAPICalled notification contains additional context:string field:
- "anonymous#unique-id" for any method call on unnamed console context,
- "name#unique-id" for any method call on named console context.

console.count and console.timeEnd have context as a scope.
console.clear clear all messages regardless on what context instance it was called.

console calls is ~10% slower with this CL since we need to store and then fetch console_context_id and console_context_name from function object.
We recently (in April) made console calls twice faster so 10% doesn't sound critical and existing of console.log call in hot code is problem by itself.

R=pfeldman@chromium.org

Bug: chromium:728767
Change-Id: I5fc73216fb8b28bfe1e8c2c1b393ebfbe43cd02e
Reviewed-on: https://chromium-review.googlesource.com/522128
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45864}
2017-06-12 15:49:13 +00:00
..
await-promise-expected.txt [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
await-promise.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
call-function-on-async-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
call-function-on-async.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
clear-of-command-line-api-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
clear-of-command-line-api.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
client-console-api-message-expected.txt [inspector] avoid cloning of async call chains 2017-04-18 15:53:08 +00:00
client-console-api-message.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
command-line-api-expected.txt [inspector] console get all information from inspector when needed 2017-03-29 21:40:07 +00:00
command-line-api.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
compile-script-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
compile-script.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-api-repeated-in-console-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-api-repeated-in-console.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-assert-expected.txt [inspector] make console.assert much faster 2016-11-23 17:09:50 +00:00
console-assert.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-context-expected.txt [inspector] introduced console.context 2017-06-12 15:49:13 +00:00
console-context.js [inspector] introduced console.context 2017-06-12 15:49:13 +00:00
console-deprecated-methods-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-deprecated-methods.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-line-and-column-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-line-and-column.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-log-doesnt-run-microtasks-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-log-doesnt-run-microtasks.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-memory-expected.txt [inspector] console get all information from inspector when needed 2017-03-29 21:40:07 +00:00
console-memory.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-messages-limits-expected.txt [inspector] introduced memory size limit for console message storage 2017-01-30 17:05:58 +00:00
console-messages-limits.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-methods-expected.txt [inspector] added missing test for console methods 2017-02-02 23:05:11 +00:00
console-methods.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-spec-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-spec.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-time-end-format-expected.txt [inspector] console.timeEnd formats ms in the same way as JS formats double 2017-01-17 20:21:38 +00:00
console-time-end-format.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-timestamp-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-timestamp.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
create-context-expected.txt [inspector] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +00:00
create-context.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
es6-module-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
es6-module.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-async-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
evaluate-async-with-wrap-error-expected.txt [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
evaluate-async-with-wrap-error.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-async.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-empty-stack-expected.txt [debug] remove JSON debug protocol related tests. 2016-11-24 10:43:22 +00:00
evaluate-empty-stack.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-with-context-id-equal-zero-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-with-context-id-equal-zero.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
evaluate-with-generate-preview-expected.txt [inspector] better isArrayLike for injected-script-source.js 2017-03-24 17:38:20 +00:00
evaluate-with-generate-preview.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
exception-thrown-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
exception-thrown.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-expected.txt [inspector] run more tests with InspectorTest.setupInjectedScriptEnvironment 2017-03-24 18:43:22 +00:00
get-properties-on-proxy-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-on-proxy.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-preview-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties-preview.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-properties.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
internal-properties-entries-expected.txt [inspector] introduced v8::debug::EntriesPreview for inspector 2017-02-07 07:46:21 +00:00
internal-properties-entries.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
internal-properties-expected.txt Make non-Module generators only context allocate parameters. 2017-05-24 13:54:57 +00:00
internal-properties.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
length-or-size-description-expected.txt [inspector] description for weak collections should not contain size 2017-03-22 21:35:14 +00:00
length-or-size-description.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
property-on-console-proto-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
property-on-console-proto.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
protocol-works-with-different-locale-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
protocol-works-with-different-locale.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
run-script-async-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
run-script-async.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
runtime-evaluate-with-dirty-context-expected.txt [inspector] Increased chances of successful InjectedScriptSource compilation 2017-03-24 01:33:12 +00:00
runtime-evaluate-with-dirty-context.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
runtime-restore-expected.txt [inspector] added reconnect method for tests 2017-02-28 20:22:24 +00:00
runtime-restore.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-or-map-entries-expected.txt Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes 2016-12-02 01:26:45 +00:00
set-or-map-entries.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00