v8/src/js
gsathya 9eb320ad10 Promises: Make debug calls only when debugging
Previously, certain calls to DebugPushPromise and DebugPopPromise
happened always, without any check to see if we were in a debugging
environment. This patch adds a conditional check before making these
debug calls to make sure they aren't called when not needed.

Before the patch, running --prof over the bluebird benchmarks,
brings up these unprotected debug calls --
ticks    cpp   total   name
16    6.7%    2.0%  v8::internal::Runtime_DebugPushPromise(int, v8::internal::Object**, v8::internal::Isolate*)
7    2.9%    0.9%  v8::internal::Runtime_DebugPopPromise(int, v8::internal::Object**, v8::internal::Isolate*)

This patch removes the above calls and provides a 4% improvement (with
a 2% variance over 10 runs) in the bluebird benchmark.

Review-Url: https://codereview.chromium.org/1985293002
Cr-Commit-Position: refs/heads/master@{#36451}
2016-05-23 20:13:07 +00:00
..
array-iterator.js array-iterator.js: use object_get_prototype_of instead of directly accessing the proto 2016-05-18 21:04:27 +00:00
array.js Convert negative zero in ArraySpeciesCreate 2016-05-04 21:33:51 +00:00
arraybuffer.js Add checks for detached ArrayBuffers to ArrayBuffer.prototype.slice 2016-04-28 22:50:56 +00:00
collection-iterator.js Move error message makers off js builtins object. 2015-10-22 11:30:07 +00:00
collection.js [proxies] Better print for proxies in d8 2015-12-22 13:50:17 +00:00
harmony-async-await.js [esnext] prototype runtime implementation for async functions 2016-05-17 00:27:51 +00:00
harmony-atomics.js [Atomics] Make Atomics.store a builtin using TF 2016-05-03 17:28:34 +00:00
harmony-regexp-exec.js Add ES2015 RegExp full subclassing semantics behind a flag 2016-03-24 22:27:21 +00:00
harmony-sharedarraybuffer.js [es6] Unify ArrayBuffer and SharedArrayBuffer constructors. 2016-01-01 07:13:16 +00:00
harmony-simd.js Use new.target in favor of %_IsConstructCall intrinsic (1). 2015-11-30 10:48:32 +00:00
harmony-species.js Add a --harmony-species flag, defining @@species on constructors 2016-01-04 19:39:59 +00:00
harmony-string-padding.js [esnext] implement StringPad spec changes from March TC39 meeting 2016-04-27 22:03:27 +00:00
harmony-unicode-regexps.js Add fast paths for native RegExps in ES2015 subclass-aware code 2016-03-29 20:42:54 +00:00
i18n.js Invalidate defaultObjects if timezone changes 2016-05-20 17:47:45 +00:00
icu-case-mapping.js Use ICU case conversion/transliterator for case conversion 2016-05-11 19:03:04 +00:00
intl-extra.js Use stricter type checks in Intl's bound methods 2016-05-18 14:57:58 +00:00
iterator-prototype.js Install iterator meta objects via utils object. 2015-10-16 11:27:33 +00:00
json.js [json] implement JSON.stringify gap pre-processing in C++. 2016-05-23 18:24:04 +00:00
macros.py Convert negative zero in ArraySpeciesCreate 2016-05-04 21:33:51 +00:00
math.js [builtins] Migrate Math.clz32 to a TurboFan builtin. 2016-04-01 14:36:32 +00:00
messages.js Revert of Refactor script position calculation (patchset #3 id:40001 of https://codereview.chromium.org/2003483002/ ) 2016-05-20 10:49:37 +00:00
OWNERS Add littledan to src/js/OWNERS 2016-01-13 01:09:19 +00:00
prologue.js [esnext] prototype runtime implementation for async functions 2016-05-17 00:27:51 +00:00
promise-extra.js Renaming cleanup of Promises 2016-05-03 07:21:11 +00:00
promise.js Promises: Make debug calls only when debugging 2016-05-23 20:13:07 +00:00
proxy.js Remove the Proxy enumerate trap 2016-02-22 21:11:36 +00:00
regexp.js Avoid infinite loop in RegExp.prototype[Symbol.split] 2016-05-02 17:33:32 +00:00
runtime.js Replace DefineIndexedProperty with %CreateDataProperty 2016-04-14 07:40:04 +00:00
spread.js [builtins] Remove bunch of uses of %_Arguments and %_ArgumentsLength. 2016-02-11 07:13:15 +00:00
string-iterator.js String.prototype[Symbol.iterator] does RequireObjectCoercible(this) 2016-03-10 00:59:20 +00:00
string.js [builtins] Migrate String.fromCharCode to C++. 2016-05-21 16:59:59 +00:00
symbol.js Remove --harmony-tostring runtime flag 2016-03-11 18:20:48 +00:00
templates.js [builtins] Migrate a bunch of Object builtins to C++. 2016-01-04 08:11:07 +00:00
typedarray.js Revert "Fix TypedArray Property optimizations", add regression test and eliminate dead code 2016-05-13 22:31:07 +00:00
uri.js [builtins] Move EncodeURI from runtime to builtins. 2016-05-17 10:56:33 +00:00
v8natives.js Reland of Remove more dead code after Object.observe removal (patchset #1 id:1 of https://codereview.chromium.org/1929293002/ ) 2016-04-29 10:15:54 +00:00
weak-collection.js Rename IS_SPEC_OBJECT macro to IS_RECEIVER. 2015-12-17 09:44:02 +00:00