Bug 1620852 - Run clang-format in js/ before merge-to-beta. r=evilpie
authorTed Campbell <tcampbell@mozilla.com>
Sun, 08 Mar 2020 17:58:25 +0000
changeset 517478 ea51105596e88a44596aeb06eb4223af9ab4b8aa
parent 517477 7aa696aefc462bd6a6b50170f04bdad47a0a7e27
child 517479 671bdfb7cb9fc97ec83961c86b9e10683ad04e65
push id37194
push usershindli@mozilla.com
push dateMon, 09 Mar 2020 03:45:29 +0000
treeherdermozilla-central@2540a369a5a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersevilpie
bugs1620852
milestone75.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1620852 - Run clang-format in js/ before merge-to-beta. r=evilpie Differential Revision: https://phabricator.services.mozilla.com/D65900
js/src/builtin/streams/PipeToState.cpp
js/src/builtin/streams/PipeToState.h
js/src/builtin/streams/ReadableStreamOperations.cpp
js/src/jit/CacheIR.cpp
--- a/js/src/builtin/streams/PipeToState.cpp
+++ b/js/src/builtin/streams/PipeToState.cpp
@@ -13,22 +13,22 @@
 #include "jsapi.h"        // JS_ReportErrorNumberASCII
 #include "jsfriendapi.h"  // js::GetErrorMessage, JSMSG_*
 
 #include "builtin/Promise.h"  // js::RejectPromiseWithPendingError
 #include "builtin/streams/ReadableStream.h"  // js::ReadableStream
 #include "builtin/streams/ReadableStreamReader.h"  // js::CreateReadableStreamDefaultReader
 #include "builtin/streams/WritableStream.h"  // js::WritableStream
 #include "builtin/streams/WritableStreamDefaultWriter.h"  // js::CreateWritableStreamDefaultWriter
-#include "js/Class.h"       // JSClass, JSCLASS_HAS_RESERVED_SLOTS
-#include "js/RootingAPI.h"  // JS::Handle, JS::Rooted
+#include "js/Class.h"          // JSClass, JSCLASS_HAS_RESERVED_SLOTS
+#include "js/RootingAPI.h"     // JS::Handle, JS::Rooted
 #include "vm/PromiseObject.h"  // js::PromiseObject
 
 #include "vm/JSContext-inl.h"  // JSContext::check
-#include "vm/JSObject-inl.h"  // js::NewBuiltinClassInstance
+#include "vm/JSObject-inl.h"   // js::NewBuiltinClassInstance
 
 using JS::Handle;
 using JS::Int32Value;
 using JS::ObjectValue;
 using JS::Rooted;
 
 using js::PipeToState;
 
--- a/js/src/builtin/streams/PipeToState.h
+++ b/js/src/builtin/streams/PipeToState.h
@@ -10,20 +10,20 @@
 #define builtin_streams_PipeToState_h
 
 #include "mozilla/Assertions.h"  // MOZ_ASSERT
 
 #include <stdint.h>  // uint32_t
 
 #include "builtin/streams/ReadableStreamReader.h"  // js::ReadableStreamDefaultReader
 #include "builtin/streams/WritableStreamDefaultWriter.h"  // js::WritableStreamDefaultWriter
-#include "js/Class.h"         // JSClass
-#include "js/RootingAPI.h"    // JS::Handle
-#include "js/Value.h"         // JS::Int32Value, JS::ObjectValue
-#include "vm/NativeObject.h"  // js::NativeObject
+#include "js/Class.h"                                     // JSClass
+#include "js/RootingAPI.h"                                // JS::Handle
+#include "js/Value.h"          // JS::Int32Value, JS::ObjectValue
+#include "vm/NativeObject.h"   // js::NativeObject
 #include "vm/PromiseObject.h"  // js::PromiseObject
 
 class JS_PUBLIC_API JSObject;
 
 namespace js {
 
 class ReadableStream;
 class WritableStream;
--- a/js/src/builtin/streams/ReadableStreamOperations.cpp
+++ b/js/src/builtin/streams/ReadableStreamOperations.cpp
@@ -8,19 +8,19 @@
 
 #include "builtin/streams/ReadableStreamOperations.h"
 
 #include "mozilla/Assertions.h"  // MOZ_ASSERT{,_IF}
 #include "mozilla/Attributes.h"  // MOZ_MUST_USE
 
 #include "jsapi.h"  // JS_SetPrivate
 
-#include "builtin/Array.h"    // js::NewDenseFullyAllocatedArray
-#include "builtin/Promise.h"  // js::RejectPromiseWithPendingError
-#include "builtin/streams/PipeToState.h"     // js::PipeToState
+#include "builtin/Array.h"                // js::NewDenseFullyAllocatedArray
+#include "builtin/Promise.h"              // js::RejectPromiseWithPendingError
+#include "builtin/streams/PipeToState.h"  // js::PipeToState
 #include "builtin/streams/ReadableStream.h"  // js::ReadableStream
 #include "builtin/streams/ReadableStreamController.h"  // js::ReadableStream{,Default}Controller
 #include "builtin/streams/ReadableStreamDefaultControllerOperations.h"  // js::ReadableStreamDefaultController{Close,Enqueue}, js::ReadableStreamControllerError, js::SourceAlgorithms
 #include "builtin/streams/ReadableStreamInternals.h"  // js::ReadableStreamCancel
 #include "builtin/streams/ReadableStreamReader.h"  // js::CreateReadableStreamDefaultReader, js::ReadableStream{,Default}Reader, js::ReadableStreamDefaultReaderRead
 #include "builtin/streams/TeeState.h"              // js::TeeState
 #include "js/CallArgs.h"                           // JS::CallArgs{,FromVp}
 #include "js/Promise.h"  // JS::CallOriginalPromiseThen, JS::AddPromiseReactions
--- a/js/src/jit/CacheIR.cpp
+++ b/js/src/jit/CacheIR.cpp
@@ -5507,20 +5507,20 @@ AttachDecision CallIRGenerator::tryAttac
   // Check for scripted optimizations.
   if (calleeFunc->isInterpreted() || calleeFunc->isNativeWithJitEntry()) {
     return tryAttachCallScripted(calleeFunc);
   }
 
   // Check for native-function optimizations.
   if (calleeFunc->isNative()) {
     if (op_ == JSOp::FunCall) {
-        return tryAttachFunCall(calleeFunc);
+      return tryAttachFunCall(calleeFunc);
     }
     if (op_ == JSOp::FunApply) {
-        return tryAttachFunApply(calleeFunc);
+      return tryAttachFunApply(calleeFunc);
     }
     return tryAttachCallNative(calleeFunc);
   }
 
   return AttachDecision::NoAction;
 }
 
 AttachDecision CallIRGenerator::tryAttachDeferredStub(HandleValue result) {