DescriptionSkip unnecessary v8::TryCatch in V8StringResource::prepare()
Since we're only interested in detecting and propagating an exception,
check whether v8::Value::ToString()'s return value is an empty handle
instead of using a v8::TryCatch local.
This is faster, since initializing a v8::TryCatch has non-zero cost, and
should also be less binary code (v8::Handle::IsEmpty() is inlined and
simply a null check.)
BUG=413257
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182476
Patch Set 1 #Patch Set 2 : adjust line nr in expected test output #Patch Set 3 : adjust more test expected output files #Patch Set 4 : rebased #Patch Set 5 : attempt at fixing before-unload-return-bad-value.html #
Messages
Total messages: 17 (4 generated)
|